Luna/kernel/include/render/Color.h

20 lines
453 B
C
Raw Normal View History

2022-09-05 14:13:51 +00:00
#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)