Hasty Briefsbeta

Rust tool for generating random fractals

4 days ago
  • #Chaos-Game
  • #Rust
  • #Fractals
  • A Rust command-line application for generating fractals using the 'Chaos Game' algorithm.
  • The algorithm involves defining vertices of a polygon, moving points towards randomly selected vertices, and plotting iterations to create fractals.
  • Installation is done via Cargo: `cargo install chaos-game`.
  • Example usage generates the Sierpiński triangle: `chaos-game -n 3 -r 0.5 -o sierpinski.png`.
  • Customizable options include number of sides, distance ratio, iterations, output filename, and more.
  • Supports colored fractals based on vertex angle and allows custom rules for vertex selection.
  • Development setup involves cloning the repository and running with Cargo in release mode for performance.
  • Extensible with custom rules by creating rule functions in the `src/rules/` directory and registering them.
  • Project is licensed under the MIT License.