Module cosmic::cosmic_theme::palette::encoding
source · Expand description
Number and color encoding traits, types and standards.
Some color spaces, particularly RGB, may be encoded in more than one way and may have more than one standard. These encodings and standards are represented as type parameters in Palette, as a form of type branding, to prevent accidental mixups.
Modules§
- Gamma encoding.
- Linear encoding
- The sRGB standard.
Structs§
- Represents
2.2f64
. - Gamma encoding.
- A generic standard with linear components.
- The sRGB standard, color space, and transfer function.
Traits§
- A transfer function from linear space.
- A transfer function to linear space.