Interactively draws a Julia set.
More...
Interactively draws a Julia set.
Usage: 'n' draws the next set. 'q' or 'Esc' quits.
- Author
- Paulo Roma Cavalcanti
- Since
- 06/05/2010
- See also
- http://www.tjhsst.edu/~dhyatt/supercomp/n106.html
-
http://en.wikipedia.org/wiki/Julia_set
◆ display()
def _15_julia.display |
( |
| ) |
|
◆ init()
◆ julia()
def _15_julia.julia |
( |
|
c, |
|
|
|
kcolor |
|
) |
| |
Computes a Julia set using the constant c.
kcolor is the square of the radius of the
circle in which zn must be in to be part of the set.
z(n+1) = z(n)**2 + c
z = (x+iy), c = (p+iq)
z*z = x**2 - y**2 + 2ixy
References xrange.
Referenced by display(), init(), and keyboard().
◆ keyboard()
def _15_julia.keyboard |
( |
|
key, |
|
|
|
x, |
|
|
|
y |
|
) |
| |
◆ main()
def _15_julia.main |
( |
|
argv = None | ) |
|
◆ reshape()
def _15_julia.reshape |
( |
|
w, |
|
|
|
h |
|
) |
| |
◆ __LIST__
bool _15_julia.__LIST__ = True |
|
private |
◆ BOTTOM
float _15_julia.BOTTOM = -1.5 |
Initial value: 1 = [-0.12375 + 0.56508j,
16 -0.6180339887498948482 + 0.0j,
◆ height
◆ HEIGHT_MATRIX
int _15_julia.HEIGHT_MATRIX = 512 |
◆ ind
◆ LEFT
float _15_julia.LEFT = -1.5 |
◆ MaxIters
int _15_julia.MaxIters = 200 |
◆ mind
◆ RIGHT
float _15_julia.RIGHT = 1.5 |
◆ TOP
float _15_julia.TOP = 1.5 |
◆ width
◆ WIDTH_MATRIX
int _15_julia.WIDTH_MATRIX = 512 |
◆ xrange