Expand description
Color types and sRGB utilities.
Structs§
- Parse
Color Error - Error returned when parsing a hex color string fails.
- Rgba
- An sRGB color with alpha, stored as four u8 components.
Functions§
- composite_
over layercomposited overbase: source-over with straight (not premultiplied) alpha in sRGB, each colour[r, g, b, a]in0.0..=1.0asRgba::to_f32_arraygives it.