Module style::color

source ·
Expand description

Color support functions.

Modules

  • cbindgen:ignore Output of parsing a color function, e.g. rgb(..), hsl(..), color(..)
  • Parse/serialize and resolve a single color component.
  • cbindgen:ignore Color conversion algorithms.
  • Color mixing/interpolation.
  • Fairly complete css-color implementation. Relative colors, color-mix, system colors, and other such things require better calc() support and integration.
  • to_css 🔒
    Write colors into CSS strings.

Macros

Structs

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

Enums

  • A color space representation in the CSS specification.