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

Enums

Traits

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