Expand description
Colors and themes.
Structs§
- Theme
- Renderer colors. Scene color
0meansTheme::foreground.
Functions§
- pack
- Pack straight-alpha components.
- parse_
hex - Parse
#rgb,#rrggbbor#rrggbbaa. - premul_
bytes - Convert to the vertex format: premultiplied RGBA8, little-endian
[r, g, b, a]. - unpack
- Unpack to straight-alpha components in
0..=1. - with_
alpha - Multiply the alpha channel.
Type Aliases§
- Rgba
- Packed
0xRRGGBBAAcolor (the scene contract’sRgba).