Fractal Python Programs

These fractals were generated by Python programs from the Active State website. They often make use of recursion.

Recursion is the process of repeating items in a self-similar way. For instance, when the surfaces of two mirrors are exactly parallel …

Online 3D Harmonograph

Online 3D Harmonograph

This is an online 3d harmonograph version of those harmonograph devices often seen in science museums – except that instead of drawing pretty harmonic patterns on paper, here we plot them in 3D-space! Glowscript code and my …

Mandrian’s Mandelbrot Music

Mandrian is a Python + Pygame program to render the Mandelbrot Set  by sub-dividing square areas into sub-squares. If the square’s corners all have the same iteration count from the escape function we assume there’s no internal detail to render. …

Spectral Harmonographs

Not fractals – but still, pretty math pictures… These were created with the following Python program (MIT license; download from GitHub):

You may need to install python and/or pygame, e.g. on Ubuntu/Debian style linuxes:

sudo apt-get install pygame
sudo apt-get …