Crate chromashift

Source

Structs§

A98Rgb
An RGB colour space with defined chromacities. The components are:
Hex
An Hex representation of the sRGB colour space.
Hsl
An colour represented as Hue, Saturation, and Lightness expressed in the sRGB colour space. The components are:
Hsv
An colour represented as Hue, Saturation, and Value expressed in the sRGB colour space. The components are:
Hwb
An colour represented as Hue, Whiteness, and Blackness expressed in the sRGB colour space. The components are:
Lab
An CIE defined colour space representing L - perceptual lightness, and two axes A & B. The components are:
Lch
A cylindrical colour space representing within the CIE colour space. The components are:
LinearRgb
A device independent expression of RGB. No exactly defined chromacities. The components are:
Oklab
A more adequate expression of LAB, in the CIE colour space. The components are:
Oklch
A more adequate expression of LCH, in the CIE colour space. The components are:
Srgb
An RGB colour space with defined chromacities. The components are:
XyzD50
A colour expressed as X, Y and Z values, expressed in the CIE XYZ tristimulus colour space, with an explicit D50 white point. The components are:
XyzD65
A colour expressed as X, Y and Z values, expressed in the CIE XYZ tristimulus colour space, with an explicit D65 white point. The components are:

Enums§

Color
HueInterpolation
A direction to interopolate hue values between, when mixing colours.
Named
WcagLevel
WCAG 2.1 color contrast levels

Constants§

COLOR_EPSILON

Traits§

ColorDistance
Trait for calculating perceptual color distance between colors.
ColorMix
Trait for calculating mixing two colors together.
ColorMixPolar
Trait for calculating mixing two colors together, with a hue direction for Polar colour spaces.
WcagColorContrast
Trait for calculating WCAG specified color contrast between colors.