Generate fractals from regular expressions. Uses regex capture to determine colors in various modes. Can change depth of the fractal and cycle through various coloring modes. Implemented in processing
Divides a square into four quadrants labelling each with a digit. The dividing process is repeated with each digit appended until each pixel has its own unique string of digits. When the regular expression matches the unique identifier for the pixel, it is colored in. In different coloring modes, the length of captures determines the color of the pixel.
The idea for this project came from a blog post on ssodelta as well as a variation by christianp that adds color based on capture data. This version adds extra coloring modes as well as a controls that allow for the depth (number of times the image is divided) of the fractal to be changed. This was an independent school project made by my partner, Ben, and I.
For use in processing add the RegexFractal folder to your sketchbook.