Crate color_brewery

Crate color_brewery 

Source
Expand description

Color schemes and gradients.

This create provides the color schemes by Cynthia Brewer and Matplotlib colormaps as well as gradients build from them (or from your own colors). The default representation of colors is the one given by the rgb crate but any type can be used: it suffices it implements the RGBColor trait.

Structs§

Gradient
Gradient between two colors.
Hue
Hue
Palette
PaletteFind
Set criteria to find matching palettes.
PaletteGradient
A gradient based on a Palette.
PaletteIter
An exact size iterator over Palettes.
Range
An iterator yielding f64 in a given range together with colors.

Enums§

PaletteType
Type of Palette.
Trivalent
Trivalent logic.

Traits§

ColorRange
A “continuous” range of colors parametrized by reals in [0, 1].
RGBColor
Specifies the methods a RGB color encoding must provide.