Parent Directory | Revision Log
Initial revision
1 | #!/usr/bin/python |
2 | |
3 | def plot(x,y): |
4 | print "p", x, y |
5 | |
6 | print "#PLOT 2" |
7 | print "o" |
8 | |
9 | c=-1+0.25j |
10 | |
11 | for x in range(0,570): |
12 | for y in range(0,570): |
13 | z= (x-285)/190.0 |
14 | z= z+(y-285)*(0+1j)/190.0 |
15 | i=0 |
16 | while i<499 and abs(z)<4: |
17 | z= z**2+c |
18 | i=i+1 |
19 | if i%2: |
20 | plot(x,y) |
21 | |
22 | print "x" |
23 |
root@recompile.se | ViewVC Help |
Powered by ViewVC 1.1.26 |