A toy program to visualize Voronoi diagrams
click in the window -> Puts a point in the clicked place
s -> Saves the current image to a png file
r -> Erases all the points in the image
d -> Removes/adds the dots that mark where the points are
left/right arrow -> Changes the distance algorithm in the order of Euclidean/Manhattan/Chebyshev
With Rust nightly, it should be as easy as:
$ cargo run
Although I would probably recommend adding the --release flag because the diagram is calculated by calculating each individual point
$ cargo run --release