touchgfx::Color::getColorFrom24BitRGB() method
@fn static colortype Color::getColorFrom24BitRGB(uint8_t red, uint8_t green, uint8_t blue); Generates a color representation to be used on the LCD, based on 24 bit RGB values. Depending on your chosen color bit depth, the color will be interpreted internally as either a 16 bit or 24 bit color value. Generates a color representation to be used on the LCD, based on 24 bit RGB values. Depending on your chosen color bit depth, the color will be interpreted internally as either a 16 bit or 24 bit color value. This function can be safely used regardless of whether your application is configured for 16 or 24 bit colors.
Arguments
red
Value of the red part (0-255).
green
Value of the green part (0-255).
blue
Value of the blue part (0-255).
Return value
The color, encoded in a 16- or 24-bit representation depending on LCD color depth.
Examples
touchgfx::Color::getColorFrom24BitRGB() is referenced by
4 libraries and example projects.
Type of touchgfx::Color::getColorFrom24BitRGB()
touchgfx::Color::getColorFrom24BitRGB()