color
Documentation for color.
Types representing RGB or RGBA colors. The decoded color will be displayed in their color field
Types
type::RGB
Type representing a generic RGB color with a variable number of bits for each color
<R>: Number of bits used for the red component<G>: Number of bits used for the green component<B>: Number of bits used for the blue component
using RGB<auto R, auto G, auto B> = type::RGBA;type::RGB4444
Type representing a RGBA color with 4 bits for the red component, 4 bits for green, 4 bits for blue and 4 bits for alpha
using RGB4444 = type::RGBA;type::RGB565
Type representing a RGB color with 5 bits for the red component, 6 bits for green and 5 bits for blue
using RGB565 = type::RGB;type::RGB8
Type representing a RGB color with 8 bits for the red component, 8 bits for green and 8 bits for blue
using RGB8 = type::RGB;type::RGBA
Type representing a generic RGBA color with a variable number of bits for each color
<R>: Number of bits used for the red component<G>: Number of bits used for the green component<B>: Number of bits used for the blue component<A>: Number of bits used for the alpha component
bitfield RGBA<auto R, auto G, auto B, auto A> { ... } [[sealed, format(...), color(...)]];type::RGBA5551
Type representing a RGBA color with 5 bits for the red component, 5 bits for green, 5 bits for blue and 1 bits for alpha
using RGBA5551 = type::RGBA;type::RGBA8
Type representing a RGBA color with 8 bits for the red component, 8 bits for green, 8 bits for blue and 8 bits for alpha
using RGBA8 = type::RGBA;