Expand description
Scientific and sci-fi color palettes from the R package ggsci.
This crate ships checked-in Rust source generated from upstream
ggsci/R/palettes.R. It has no runtime dependencies and does not require R
at build time.
Structs§
- Palette
- A generated ggsci color palette.
- Palette
Spec - A canonical static palette specification.
- Rgb
- A packed RGB color stored as
0xRRGGBB. - Rgba
- A packed RGBA color stored as
0xRRGGBBAA.
Enums§
- Error
- Error type for palette lookup and color conversion.
- Palette
Kind - The implementation kind for a palette.
Functions§
- palette
- Looks up a palette by family and variant.
- palette_
by_ spec - Looks up a palette by a
family:variantspecification. - palette_
names - Returns canonical
(family, variant)names for all palettes. - palettes
- Returns all generated static palettes.
- total_
color_ count - Returns the total number of generated colors.