/[cvs]/fract/mandelzoom.cgi
ViewVC logotype

Diff of /fract/mandelzoom.cgi

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.6 by teddy, Mon Feb 26 03:13:13 2001 UTC revision 1.7 by teddy, Mon Feb 26 05:31:47 2001 UTC
# Line 74  if not (form.has_key('type') and form['t Line 74  if not (form.has_key('type') and form['t
74          iy= atof(form['image.y'].value)          iy= atof(form['image.y'].value)
75          owidth= atof(form['owidth'].value)          owidth= atof(form['owidth'].value)
76          oheight= atof(form['oheight'].value)          oheight= atof(form['oheight'].value)
77          diagp= math.sqrt(width**2 + height**2)          diagp= math.sqrt(owidth**2 + oheight**2)
78          scale= diagp/diag          scale= diagp/diag
79          cx= (ix/scale) + (cx - (width / (scale*2)))          cx= (ix/scale) + (cx - (owidth / (scale*2)))
80          cy= ((height-iy)/scale) + (cy - (height / (scale*2)))          cy= ((oheight-iy)/scale) + (cy - (oheight / (scale*2)))
81      if form.has_key('zoom'):      if form.has_key('zoom'):
82          zoom=atof(form['zoom'].value)          zoom=atof(form['zoom'].value)
83          diag=diag/zoom          diag=diag/zoom

Legend:
Removed from v.1.6  
changed lines
  Added in v.1.7

root@recompile.se
ViewVC Help
Powered by ViewVC 1.1.26