FabGL
ESP32 Display Controller and Graphics Library
fabgl::RGB222 Struct Reference

Represents a 6 bit RGB color. More...

#include <displaycontroller.h>

Public Attributes

uint8_t B: 2
 
uint8_t G: 2
 
uint8_t R: 2
 

Detailed Description

Represents a 6 bit RGB color.

When 1 bit per channel (8 colors) is used then the maximum value (white) is 1 (R = 1, G = 1, B = 1). When 2 bits per channel (64 colors) are used then the maximum value (white) is 3 (R = 3, G = 3, B = 3).

Member Data Documentation

◆ B

uint8_t fabgl::RGB222::B

The Blue channel

◆ G

uint8_t fabgl::RGB222::G

The Green channel

◆ R

uint8_t fabgl::RGB222::R

The Red channel


The documentation for this struct was generated from the following files: