--- fract/julia3.cgi 2001/02/24 15:57:15 1.1.1.1 +++ fract/julia3.cgi 2001/02/24 21:33:54 1.2 @@ -5,7 +5,16 @@ form= cgi.FieldStorage() -width, height= 570, 570 # Image size +# Image size +if form.has_key('width'): + width=atoi(form['width'].value) +else: + width= 570 +if form.has_key('height'): + height=atoi(form['height'].value) +else: + height= 570 + xmax, ymax = width-1, height-1 # Coordinate maximums inx=max(0, min(atoi(form['image.x'].value), xmax))