change the size as well as the rotation

This commit is contained in:
Robin Clark 2019-12-24 09:21:18 +00:00
parent ca2aa91446
commit 34561a1071

View File

@ -77,7 +77,9 @@ canvas.data = { }
redrawAll(canvas)
rot = random.randint(-1570, 1570) / 1000.0
zz = complex(math.cos(rot), math.sin(rot))
mag = random.randint(500, 2570) / 1000.0
#mag = 0.5
zz = mag * complex(math.cos(rot), math.sin(rot))
print " rotation ", rot, "degrees ", 90*rot/1.57, "zz ", zz
def mandelbrot (re, Im, max_iter):
c = complex (Re,Im)