Circle Rasterization algorithm in rust inspired by Casey Muratori
Based on Bresenham's algorithm
- Install rust
- Build and Run using
cargo
cargo run --release
The viewport is rasterized into a square grid with the circle radius being normalized to the grid.
Use mouse wheel to adjust the radius of the circle and +
or -
key to adjust the grid size.
To switch between light and dark mode, use the L
and D
key.