Skip to content

TristanAntonsen/rust-stippler

Repository files navigation

Weighted Voronoi Point Stippling

An implementation of Weighted Voronoi Point Stippling in Rust along with some additional functionality.

Banner

Running the program

To run with default/assumed parameters:

cargo run --release image_path

To run with declared parameters

cargo run --release image_path point_count iterations threshold

Where

parameter Definition Default Value
image_path path to weight image including extension N/A
point_count target number of seed points calculated from weight image
iterations number of relaxation iterations 60
threshold maximum grayscale threshold at seed location 0.5

Example point relaxation images

Stippling tests

Example voronoi cell mosaics

Cell mosaic tests

About

Weighted voronoi point stippling in Rust

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published