ggsci
Scientific and sci-fi color palettes from the R package ggsci, packaged as static Rust data.
This first release includes static non-Gephi, non-iTerm palettes generated from
upstream. Continuous seed palettes such as gsea, bs5, material, and tw3
are exposed as static color arrays only; interpolation is future work.
let palette = palette?;
let colors = palette.take_hex?;
assert_eq!;
# Ok::
Lookup is case-insensitive and accepts _, -, and spaces interchangeably:
let palette = palette_by_spec?;
assert_eq!;
assert_eq!;
# Ok::
The crate has no runtime dependencies, no feature flags, and no build script.