| Crates.io | fish-oxide |
| lib.rs | fish-oxide |
| version | 0.3.2 |
| created_at | 2025-01-01 03:18:22.264596+00 |
| updated_at | 2025-01-24 03:42:45.319305+00 |
| description | A port of fishdraw to rust |
| homepage | |
| repository | https://github.com/ava-silver/fish-oxide |
| max_upload_size | |
| id | 1500568 |
| size | 124,037 |
A port of fishdraw to rust. Credit goes to them for the original idea and code.
cargo install fish-oxide
fish-oxide -f svg > fish.svg
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)
)
);
}