/regex-fractals

Fractal images created from regex expressions

Primary LanguageRustMIT LicenseMIT

Regex Fractals

Toy project based on this imgur gallery.

Completed features:

  • Get image size from command line;
  • Read regex from command line;
  • Binary coloring (match/no-match).
  • Gradient coloring (size-of-match/no-match).

Missing features:

  • Handle different shapes;

Example

Example generated by running:

cargo run --release -- --on-color 000000 --off-color 000000 --match-color 481050 '.*(?:13|31|24|42)(.*)'

Example image