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

Diff of /fract/julia3.cgi

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

revision 1.1 by teddy, Sat Feb 24 15:57:15 2001 UTC revision 1.2 by teddy, Sat Feb 24 21:33:54 2001 UTC
# Line 5  from string import atoi Line 5  from string import atoi
5    
6  form= cgi.FieldStorage()  form= cgi.FieldStorage()
7    
8  width, height= 570, 570                 # Image size  # Image size
9    if form.has_key('width'):
10        width=atoi(form['width'].value)
11    else:
12        width= 570
13    if form.has_key('height'):
14        height=atoi(form['height'].value)
15    else:
16        height= 570
17    
18  xmax, ymax = width-1, height-1          # Coordinate maximums  xmax, ymax = width-1, height-1          # Coordinate maximums
19    
20  inx=max(0, min(atoi(form['image.x'].value), xmax))  inx=max(0, min(atoi(form['image.x'].value), xmax))

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

root@recompile.se
ViewVC Help
Powered by ViewVC 1.1.26