A String Art Generation Library
- Upload an image
- Preview the greyscale conversion from source image
- View thread anchor sequence drawn onto canvas
- Play with input parameters to change output
drawn by me ◕_◕
You can pull the crate from git and I will maybe publish at some point
[dependencies]
string-bean = { git = 'https://github.com/ndbaker1/string-bean' }
The CLI has some good example usage:
string-bean/string-bean-cli/src/main.rs
Lines 50 to 61 in 2daab67
Though minimal, the repo includes a CLI that you can install by running:
cargo install --git https://github.com/ndbaker1/string-bean
It currently supports:
- generating thread art for a circular boundary inside an input image and outputing an SVG file
A recent youtube video about string art, The Mathematics of String Art, showed up in my recommended and was pretty interesting so i decided to try implementing it in 🦀 Rust.
There are also very few well documented projects for computational string/thread-art, so i figured i would try to make one that was easily accessible and avoided using libraries to do heavy lifting magic