Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ndbaker1/string-bean
๐งต A String Art Generation Library
https://github.com/ndbaker1/string-bean
computational-art string-art thread-art
Last synced: 6 days ago
JSON representation
๐งต A String Art Generation Library
- Host: GitHub
- URL: https://github.com/ndbaker1/string-bean
- Owner: ndbaker1
- License: mit
- Created: 2023-07-30T21:45:15.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2023-10-02T07:49:26.000Z (over 1 year ago)
- Last Synced: 2024-11-08T00:55:57.038Z (about 2 months ago)
- Topics: computational-art, string-art, thread-art
- Language: Rust
- Homepage: https://ndbaker1.github.io/string-bean/
- Size: 106 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
๐งต string-bean
A String Art Generation Library
## [๐ Demo](https://ndbaker1.github.io/string-bean/)
1. Upload an image
2. Preview the greyscale conversion from source image
3. View thread anchor sequence drawn onto canvas
4. Play with input parameters to change output#### Sample Output
> drawn by me โ_โ![string-bean-sample](https://github.com/ndbaker1/string-bean/assets/48701178/1eb4b052-7ed6-4d74-a211-e6052b08fa71)
## โก Usage
### ๐ฆ Cargo
You can pull the crate from git and I will maybe publish at some point
```toml
[dependencies]
string-bean = { git = 'https://github.com/ndbaker1/string-bean' }
```The CLI has some good example usage: https://github.com/ndbaker1/string-bean/blob/2daab678d45f400408a8dbdb39555c916c21ada6/string-bean-cli/src/main.rs#L50-L61
### โจ๏ธ CLIThough minimal, the repo includes a CLI that you can install by running:
```shell
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## ๐ค Motivation
A recent youtube video about string art, [The Mathematics of String Art](https://youtu.be/WGccIFf6MF8), 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