/ChaosGame

Chaos Game algorithm implementation in Rust programming language.

Primary LanguageRust

Chaos Game

This is a Rust implementation of the Chaos Game algorithm.

Sources

Numberphile has made a great video about Chaos Game, but my main source of information and inspiration was this website which belongs to Ingo Berg

TODO

  • There still is some code cleanup to do
  • There should be at least a bit of theory in this README
  • Better font loading
  • Maybe I should add more fractals other then just Sierpiński triangle

How to run

Note You may need to change path to your prefered font in the following line in th main.rs file.

const FONT_PATH: &str = "/usr/share/fonts/TTF/arial.ttf";

Then run it with release profile:

$ cargo run --release