/[cvs]/fract/julia.py
ViewVC logotype

Contents of /fract/julia.py

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1.1.1.1 - (show annotations) (vendor branch)
Sat Feb 24 15:57:15 2001 UTC (23 years, 1 month ago) by teddy
Branch: masse, MAIN
CVS Tags: start, HEAD
Changes since 1.1: +0 -0 lines
File MIME type: text/x-python
Imported sources (take 2)

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