where Z means the original coordinate of the point in the complex numerical system. Z(n) and Z(n-1) means two elements from the queue. After some steps, the length of the Z(n) vector could reach 2. This is a value limit. The points, which are lower than 2 are in the set of Mandelbrot, and which are higher than 2 are not in the set. If we want to get a sharper picture, just increase the value of maximum cycles. The rectangle which contains the set of Mandelbrot is (-1.5,-1) - (0.5,1).

Home,sweet home...