Available on crate feature
color
only.Expand description
Chromatic functionality.
Structs§
- Gamma
- Gamma correction curves.
- Lum
- A generic luminance-like component.
- Rgb
- RGB color with 3 components.
- Rgba
- RGB+A color with 4 components.
Traits§
- Color
- Base trait for general color data representation.
Type Aliases§
- Lightness
- Perceptual lightness (L*).
- Linear
Lightness - Linearized perceptual lightness (L* in linear space).
- Luma
- Gamma-encoded luma (Y′).
- Luminance
- Physical luminance.
- Rgb8
- RGB color with 8-bit integer components (sRGB gamma space).
- Rgb16
- RGB color with 16-bit integer components (sRGB gamma space).
- RgbF64
- RGB color with 64-bit float components (sRGB gamma space).
- RgbLin
F64 - RGB color with 64-bit float components (linear space).
- Rgba8
- RGB+A color with 8-bit integer components (sRGB gamma space, straight alpha).
- Rgba16
- RGB+A color with 16-bit integer components (sRGB gamma space, straight alpha).
- RgbaF64
- RGB+A color with 64-bit float components (sRGB gamma space, straight alpha).
- Rgba
LinF64 - RGB+A color with 64-bit float components (linear space, straight alpha).
- Rgba
LinPre F64 - RGB+A color with 64-bit float components (linear space, premultiplied alpha).
- Rgba
Pre8 - RGB+A color with 8-bit integer components (sRGB gamma space, premultiplied alpha).
- Rgba
Pre16 - RGB+A color with 16-bit integer components (sRGB gamma space, premultiplied alpha).
- Rgba
PreF64 - RGB+A color with 64-bit float components (sRGB gamma space, premultiplied alpha).