Skip to content

Latest commit

 

History

History
22 lines (11 loc) · 1.28 KB

README.md

File metadata and controls

22 lines (11 loc) · 1.28 KB

Regex-Fractals

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

How it Works

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.

Inspiration

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.

Installation

For use in processing add the RegexFractal folder to your sketchbook.

Demonstration

Color Modes

Regex Depth