cosmic::cosmic_theme::palette

Module stimulus

source
Expand description

Traits for working with stimulus colors and values, such as RGB and XYZ.

Traitsยง

  • Converts from a stimulus color component type, while performing the appropriate scaling, rounding and clamping.
  • Converts into a stimulus color component type, while performing the appropriate scaling, rounding and clamping.
  • Color components that represent a stimulus intensity.
  • A marker trait for colors where all components are stimuli.