Luna/kernel/include/render/Color.h

22 lines
502 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;
static Color from_integer(uint32_t source);
2022-09-05 14:13:51 +00:00
} __attribute__((packed)); // to reinterpret this as a uint32_t AARRGGBB (in reversed order here because endianness)