Module color

Source
Expand description

Color support functions.

Modulesยง

color_function ๐Ÿ”’
Output of parsing a color function, e.g. rgb(..), hsl(..), color(..)
component
Parse/serialize and resolve a single color component.
convert
cbindgen:ignore Color conversion algorithms.
mix
Color mixing/interpolation.
parsing
Parsing for CSS colors.
to_css ๐Ÿ”’
Write colors into CSS strings.

Macrosยง

color_components_as ๐Ÿ”’
Given an AbsoluteColor, return the 4 float components as the type given, e.g.:

Structsยง

AbsoluteColor
An absolutely specified color, using either rgb(), rgba(), lab(), lch(), oklab(), oklch() or color().
ColorComponents
The 3 components that make up a color. (Does not include the alpha component)
ColorFlags
Flags used when serializing colors.
ComponentDetails
Holds details about each component passed into creating a new AbsoluteColor.

Enumsยง

ColorFunction
Represents a specified color function.
ColorSpace
A color space representation in the CSS specification.