FabGL
ESP32 Display Controller and Graphics Library

◆ createRawPixel()

uint8_t createRawPixel ( RGB222  rgb)
inlineinherited

Creates a raw pixel to use with VGAController.setRawPixel.

A raw pixel (or raw color) is a byte (uint8_t) that contains color information and synchronization signals.

Parameters
rgbPixel RGB222 color

Example:

// Set color of pixel at 100, 100
VGAController.setRawPixel(100, 100, VGAController.createRawPixel(RGB222(3, 0, 0));

Definition at line 306 of file vgabasecontroller.h.