This script will prompt for in input of a fractal algorithym of the form z = z^n + c.
c is the independent complex variable, and z is the dependent variable, changed after each iteration.
I would suggest using the fractal z = z^2 + c with a resolution of 500x500 pixels, domain of [-2, 2], range of [-2, 2] and 1000 iterations for your first try.
More iterations make the image more accurate, but take longer to render. 1000 iterations is a good value if you’re resolution isn’t too crazy.