--- fract/mandelzoom.cgi 2001/02/25 22:54:25 1.5 +++ fract/mandelzoom.cgi 2001/02/26 11:26:15 1.8 @@ -28,12 +28,12 @@ if form.has_key('cx'): cx= atof(form['cx'].value) else: - cx= 0 + cx= 0.0 if form.has_key('cy'): cy= atof(form['cy'].value) else: - cy= 0 + cy= 0.0 if form.has_key('diag'): diag= atof(form['diag'].value) @@ -53,10 +53,10 @@
-+After changing any settings, don't forget to change the "Zoom" setting +to "Pan" if you don't want to zoom when applying them. """ sys.exit(0) @@ -121,8 +131,8 @@ x= (width/2.0)/scale y= (height/2.0)/scale -c1= cx - x + cy - y * (0+1j) -c2= cx + x + cy + y * (0+1j) +c1= cx - x + (cy - y) * (0+1j) +c2= cx + x + (cy + y) * (0+1j) #print width, height, diag, cx, cy, diagp, scale, x, y, c1, c2 #sys.exit(0)