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§
- Absolute
Color - An absolutely specified color, using either rgb(), rgba(), lab(), lch(), oklab(), oklch() or color().
- Color
Components - The 3 components that make up a color. (Does not include the alpha component)
- Color
Flags - Flags used when serializing colors.
- Component
Details - Holds details about each component passed into creating a new
AbsoluteColor.
Enums§
- Color
Function - Represents a specified color function.
- Color
Space - A color space representation in the CSS specification.
Constants§
- PRE_
ALLOCATED_ COLOR_ MIX_ ITEMS - Number of color-mix items to reserve on the stack to avoid heap allocations.
Type Aliases§
- Color
MixItem List - Conveniece type to use for collecting color mix items.