20 lines
453 B
C
20 lines
453 B
C
|
#pragma once
|
||
|
#include <stdint.h>
|
||
|
|
||
|
struct Color
|
||
|
{
|
||
|
uint8_t blue;
|
||
|
uint8_t green;
|
||
|
uint8_t red;
|
||
|
uint8_t alpha;
|
||
|
|
||
|
static Color White;
|
||
|
static Color Black;
|
||
|
static Color Red;
|
||
|
static Color Green;
|
||
|
static Color Blue;
|
||
|
static Color Yellow;
|
||
|
static Color Cyan;
|
||
|
static Color Magenta;
|
||
|
static Color Gray;
|
||
|
} __attribute__((packed)); // to reinterpret this as a uint32_t AARRGGBB (in reversed order here because endianness)
|