danmack / sierpinski-rs

Generate a Sierpinski triangle using rust and output to a PNG file

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Sierpinski Triangle Generator in Rust

Sierpinski Triangle

A simple program that generates a Sierpinski triangle in rust. The triangle is generated using the chaos method, storage in an image buffer, and then written out to a file named "tri.png" in the current working directory.

cargo run

# linux
xdg-open tri.png

# macos
open tri.png

About

Generate a Sierpinski triangle using rust and output to a PNG file


Languages

Language:Rust 100.0%