Crate chromatic

Source
Expand description

§Chromatic

Chromatic is a simple library for building and sampling colour maps.

Macros§

impl_transparent_colour
Macro to implement the Colour trait for transparent colour types.
impl_transparent_convert
Macro to implement the Convert trait for transparent colour types.
impl_transparent_display
Macro to implement Display for transparent colour types.

Structs§

ColourMap
A map of colours with uniform spacing, allowing interpolation between them.
Grey
Monochrome colour.
GreyAlpha
Grey with alpha channel.
Hsl
HSL colour representation.
HslAlpha
HSL with alpha channel.
Hsv
HSV colour representation.
HsvAlpha
HSV with alpha channel.
Lab
LAB colour representation.
LabAlpha
Lab with alpha channel.
Rgb
RGB colour representation.
RgbAlpha
RGB with alpha channel.
Srgb
sRGB colour representation.
SrgbAlpha
sRGB with alpha channel.
Xyz
XYZ colour representation.
XyzAlpha
XYZ with alpha channel.

Enums§

ParseColourError
Error parsing Colours from string.

Traits§

Colour
Common trait for all colour types.
Convert