FabGL
ESP32 VGA Controller and Graphics Library
fabgl::RGB Struct Reference

Represents an RGB color. More...

#include <vgacontroller.h>

Public Attributes

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

Detailed Description

Represents an 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::RGB::B

The Blue channel

◆ G

uint8_t fabgl::RGB::G

The Green channel

◆ R

uint8_t fabgl::RGB::R

The Red channel


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