The Mandlebrot Set

This is a small php program that I wrote in my undergrad days to draw a Mandlebrot fractal.

Try a range of x = -2 to 2, and y = -2 to 2 and set cx and cy to zero.

The PHP script will only run for 30 seconds before the server ends it, so start with an image size of 100 pixels. A pixel width of 1 will give the best resolution, but to see a larger image, try a value of 2 or 3.

X Range:

Y Range:

Size of image (in pixels):

Width of pixels:



Leave a Reply

Your email address will not be published. Required fields are marked *