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§
Structs§
- C3
- Color
Sample - Labeled color slot index and normalized entropy h for a palette sample.
- Related
Term - Term index within W and salience score (sums to 1 over returned terms for that color).
Enums§
- Read
NpyError - An error reading a
.npyfile.