SPI based library for the ST7735 LCD controller.
Dependents: RayCastingEngine RETRO_LCD_PerformanceTest RETRO_loop_test RETRO_RickGame ... more
Color565 Class Reference
Color palete support for 16bit RGB colors with 565 color format. More...
#include <Color565.h>
Static Public Member Functions | |
static uint16_t | fromRGB (uint8_t r, uint8_t g, uint8_t b) |
Returns a 565 RGB color built from individual RGB color components. | |
Static Public Attributes | |
static const uint16_t | White = Color565::fromRGB(0xff, 0xff, 0xff) |
White. | |
static const uint16_t | Silver = Color565::fromRGB(0xc0, 0xc0, 0xc0) |
Silver. | |
static const uint16_t | Gray = Color565::fromRGB(0x80, 0x80, 0x80) |
Gray. | |
static const uint16_t | Black = Color565::fromRGB(0x00, 0x00, 0x00) |
Black. | |
static const uint16_t | Red = Color565::fromRGB(0xff, 0x00, 0x00) |
Red. | |
static const uint16_t | Maroon = Color565::fromRGB(0x80, 0x00, 0x00) |
Maroon. | |
static const uint16_t | Yellow = Color565::fromRGB(0xff, 0xff, 0x00) |
Yellow. | |
static const uint16_t | Olive = Color565::fromRGB(0x80, 0x80, 0x00) |
Olive. | |
static const uint16_t | Lime = Color565::fromRGB(0x00, 0xff, 0x00) |
Lime. | |
static const uint16_t | Green = Color565::fromRGB(0x00, 0x80, 0x00) |
Green. | |
static const uint16_t | Aqua = Color565::fromRGB(0x00, 0xff, 0xff) |
Aqua. | |
static const uint16_t | Teal = Color565::fromRGB(0x00, 0x80, 0x80) |
Teal. | |
static const uint16_t | Blue = Color565::fromRGB(0x00, 0x00, 0xff) |
Blue. | |
static const uint16_t | Navy = Color565::fromRGB(0x00, 0x00, 0x80) |
Navy. | |
static const uint16_t | Fuchsia = Color565::fromRGB(0xff, 0x00, 0xff) |
Fuchsia. | |
static const uint16_t | Purple = Color565::fromRGB(0x80, 0x00, 0x80) |
Purple. |
Detailed Description
Color palete support for 16bit RGB colors with 565 color format.
Definition at line 9 of file Color565.h.
Member Function Documentation
static uint16_t fromRGB | ( | uint8_t | r, |
uint8_t | g, | ||
uint8_t | b | ||
) | [static] |
Returns a 565 RGB color built from individual RGB color components.
- Parameters:
-
r Red component g Green component b Blue component
Definition at line 65 of file Color565.h.
Field Documentation
const uint16_t Aqua = Color565::fromRGB(0x00, 0xff, 0xff) [static] |
Aqua.
Definition at line 43 of file Color565.h.
const uint16_t Black = Color565::fromRGB(0x00, 0x00, 0x00) [static] |
Black.
Definition at line 22 of file Color565.h.
const uint16_t Blue = Color565::fromRGB(0x00, 0x00, 0xff) [static] |
Blue.
Definition at line 49 of file Color565.h.
const uint16_t Fuchsia = Color565::fromRGB(0xff, 0x00, 0xff) [static] |
Fuchsia.
Definition at line 55 of file Color565.h.
const uint16_t Gray = Color565::fromRGB(0x80, 0x80, 0x80) [static] |
Gray.
Definition at line 19 of file Color565.h.
const uint16_t Green = Color565::fromRGB(0x00, 0x80, 0x00) [static] |
Green.
Definition at line 40 of file Color565.h.
const uint16_t Lime = Color565::fromRGB(0x00, 0xff, 0x00) [static] |
Lime.
Definition at line 37 of file Color565.h.
const uint16_t Maroon = Color565::fromRGB(0x80, 0x00, 0x00) [static] |
Maroon.
Definition at line 28 of file Color565.h.
const uint16_t Navy = Color565::fromRGB(0x00, 0x00, 0x80) [static] |
Navy.
Definition at line 52 of file Color565.h.
const uint16_t Olive = Color565::fromRGB(0x80, 0x80, 0x00) [static] |
Olive.
Definition at line 34 of file Color565.h.
const uint16_t Purple = Color565::fromRGB(0x80, 0x00, 0x80) [static] |
Purple.
Definition at line 58 of file Color565.h.
const uint16_t Red = Color565::fromRGB(0xff, 0x00, 0x00) [static] |
Red.
Definition at line 25 of file Color565.h.
const uint16_t Silver = Color565::fromRGB(0xc0, 0xc0, 0xc0) [static] |
Silver.
Definition at line 16 of file Color565.h.
const uint16_t Teal = Color565::fromRGB(0x00, 0x80, 0x80) [static] |
Teal.
Definition at line 46 of file Color565.h.
const uint16_t White = Color565::fromRGB(0xff, 0xff, 0xff) [static] |
White.
Definition at line 13 of file Color565.h.
const uint16_t Yellow = Color565::fromRGB(0xff, 0xff, 0x00) [static] |
Yellow.
Definition at line 31 of file Color565.h.
Generated on Wed Jul 13 2022 23:54:42 by 1.7.2