DEKI/ENGINE docs
manual api reference
Deki 0.40.1
Modular C++ engine with a visual editor, for 2D and 3D
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

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

Macro Definition Documentation

◆ DEKI_COL32

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