Skip to main content

Crate ggsci

Crate ggsci 

Source
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.
PaletteSpec
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.
PaletteKind
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:variant specification.
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.