Created this project so I can study Rust while programming fractals! I have always wanted to learn fractal generation.
Fractals are a very complex subject, there many ways to generate one and many different fractals with different characteristics.
The Sierpinski carpet is a very simple fractal. A fun thing about them is that when they are actually fractals (not just finite representations such as the one generated on this projetct) they have 0 area and infinite perimeter.
- Run
cargo run --release
inside the cloned repo. - There are two possible variables that can be passed, otherwise the default values will be used:
- Steps -> The amount of steps that will be taken to create the image.
- Pattern -> I've added some nice patterns that the fractal can be generated with, try them out:
- Classic Contrast
- Inverted Classic
- Gold Velvet
- Earthy Tones
- Contrast Harmony
- Bold Neutrals
Use the env BENCHMARK to run a test for speed on the generation.
BENCHMARK cargo run --release