StaticgetStaticgetStaticgetStaticfromConverts a channel to the [0, 255] range.
Staticrgb8Constructs a color from individual channels ranging from 0 to 255.
StaticrgbConstructs a color from individual channels ranging from 0 to 1.
StatichsvConstructs a color from HSV values ranging from 0 to 1.
StatictoEncodes a color as a hexadecimal string, like #abcdef.
StaticbytesInterprets an array of bytes into colors.
Swizzling order of bytes. Letters that don't correspond to any channel cause that byte to be ignored. Valid channels are R/r for red, G/g for green, and B/b for blue.
In big-endian mode, the first byte is the most significant, while in little-endian mode, it's the least significant.
Staticimage
Constructs a color from individual channels.