DEKI/ENGINE docs
Deki 0.19.0
Modular C++ 2D engine for embedded displays and desktop
Loading...
Searching...
No Matches
Color.h File Reference

Classes

class  Deki::Color
 An RGBA colour, 8 bits per channel, with conversions to and from packed formats (RGB565, RGB888, ARGB8888, RGBA8888), floats and HSV. More...

Namespaces

namespace  Deki

Macros

#define DEKI_COL32(R, G, B, A)

Functions

void Deki::ColorToHex (const Color &c, char out[10])
 Writes c as "#RRGGBBAA", the form saved files use.
bool Deki::ColorFromHex (const char *text, Color &out)
 Parses "#RRGGBBAA", and "#RRGGBB" as fully opaque.

Macro Definition Documentation

◆ DEKI_COL32

#define DEKI_COL32 ( R,
G,
B,
A )
Value:
(((uint32_t)(A) << 24) | ((uint32_t)(B) << 16) | ((uint32_t)(G) << 8) | ((uint32_t)(R)))