Skip to main content

Crate rust_c3

Crate rust_c3 

Source
Expand description

C3 color naming / palette analysis (Rust port).

Dataset: C3::new / C3::try_new load compile-time embedded c3_{color,a,t}.npy so native and wasm32-unknown-unknown (browser) builds share one path—no runtime filesystem.

Use C3::from_npy_dir on native or WASI when you want files from disk instead.

Re-exports§

pub use c3_terms::get_c3_terms;
pub use c3_terms::C3_TERM_STRS;

Modules§

c3_terms

Structs§

C3
ColorSample
Labeled color slot index and normalized entropy h for a palette sample.
RelatedTerm
Term index within W and salience score (sums to 1 over returned terms for that color).

Enums§

ReadNpyError
An error reading a .npy file.