fish-oxide

Crates.iofish-oxide
lib.rsfish-oxide
version0.3.2
created_at2025-01-01 03:18:22.264596+00
updated_at2025-01-24 03:42:45.319305+00
descriptionA port of fishdraw to rust
homepage
repositoryhttps://github.com/ava-silver/fish-oxide
max_upload_size
id1500568
size124,037
Ava Silver (ava-silver)

documentation

README

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)
        )
    );
}
Commit count: 58

cargo fmt