# use different values of c for fun patterns! def pixel(z): #c = .285 #c = -.125+.75j #c = 0.45+0.1428j c = -0.835-0.2321j for i in range(MAX_ITER): z = z**2+c if abs(z) >= 2.0: return i return MAX_ITER