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. We also use the iteration count to select an audio frequency and play a note. Colours are either tied to the itera…
Python
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
Mandrian.py
README.md
man-262_0-0_0-1024.jpg

README.md

Mandrian's Musical Mandelbrot

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. We also use the iteration count to select an audio frequency and play a note. Colours are either tied to the iteration count, or are random. The squares may be bordered. The effect is a little similar to Mondrian's paintings. The program's name is a portmanteau of Mandelbrot and Mondrian. See http://fractalart.gallery/mandrians-mandelbrot-music/ for pictures, more information, and a YouTube video where you can hear the 'music' (sound quality not great).