5 unstable releases
new 0.3.1 | Jan 12, 2025 |
---|---|
0.3.0 | Jan 12, 2025 |
0.2.1 | Jan 3, 2025 |
0.2.0 | Jan 3, 2025 |
0.1.0 | Jan 1, 2025 |
#222 in Images
622 downloads per month
115KB
3K
SLoC
fish-oxide
A port of fishdraw to rust. Credit goes to them for the original idea and code.
Usage
As a cli tool:
cargo install fish-oxide
fish-oxide -f svg > fish.svg
As a dependency:
Add this package to your Cargo.toml
, and this to your code:
use fish_oxide::generate_svg;
fn main() {
println!("{}", generate_svg());
}
or to customize the fish:
use fish_oxide::{generate, generate_params, Format};
fn main() {
let mut params = generate_params();
// modify params
println!(
"{}",
generate(
Format::Svg,
"My Seed".to_owned(),
Some("Make a Fish".to_owned()),
None,
Some(20.),
Some(params)
)
);
}
Dependencies
~1.8–2.9MB
~54K SLoC