Skip to content

NickCondron/regex-fractals

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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

About

Generate Fractals from Regular Expressions in Processing

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published