ArchUsr64 / circle_rasterization

Circle Rasterization algorithm in rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

circle_rasterization

Circle Rasterization algorithm in rust inspired by Casey Muratori
Based on Bresenham's algorithm

Building

  1. Install rust
  2. Build and Run using cargo
    cargo run --release

Controls

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.

Screenshot

screen_shot

About

Circle Rasterization algorithm in rust


Languages

Language:Rust 100.0%