//
// MandelbrotFractal.java (FB - 201003276)
// N Multi-threaded!
import java.applet.Applet;
import java.awt.*;
import java.awt.image.*;
import java.lang.Thread;
public class MandelbrotFractal extends Applet
{
Image img;
volatile int pix[]; // will be shared by all threads
int w,h,alpha;
final int maxThr = 10; // number of threads to run
// drawing area (must be xa 4)
{
// various color palettes can be created here!
red=255-(kc%16)*16;
green=(16-kc%16)*16;
blue=(kc%16)*16;
pix[w*ky+kx]=(alpha<<24)|(red<<16)|(green<<8)|blue;
break;
}
}
}
}
}
}