Julia Fractal
This code displays a colorful Julia Fractal.
It uses the kandinsky and math modules.
The function
Z**2 + C --> Z
is iterated.
Both Z and C are complex values.
C is a complex constant value and defines the appearance of the fractal.
The initial value of Z depends on the position within the fractal, the real part depends on the x coordinate, the imaginary part depends on the y coordinate.
A loop measures how many iterations it takes for the modulus of Z to exceed the value of 2.0
The counter which keeps track of the number of needed iterations is then used to determine the color of the pixel being calculated