An Escape-Time Fractal Explorer written in Python for Mandelbrot and Julia Sets.
Exploring works in real time for moderately sized windows (e.g. 640x360) by using Just-In-Time Compilation (JIT) and SIMD instructions provided by numba
.
Run viewer.py
to explore the fractals!
Key | Function |
---|---|
Mouse Drag | Pan around the fractal |
Mouse Scroll | Zoom in and out |
m |
Switch to Mandelbrot Set |
j |
Switch to Julia Set |
s |
Toggle smooth coloring |
i |
Increase the number of iterations |
Shift+i |
Decrease the number of iterations |
k |
Increase the Julia Set real constant |
Shift+k |
Decrease the Julia Set real constant |
l |
Increase the Julia Set imaginary constant |
Shift+l |
Decrease the Julia Set imaginary constant |
c |
Capture current fractal and save as an image |
numpy
numba
pillow
imageio
pip install numpy numba pillow imageio
- Wikipedia pages on the Mandelbrot Set, Julia Set and Smooth Coloring.
- javidx9's video on Fractals and on Panning and Zooming.