Files
ThreeAM/colors.hpp
2023-12-30 11:07:01 -06:00

29 lines
508 B
C++

#include <cstdint>
struct pixel
{
uint8_t green;
uint8_t red;
uint8_t blue;
void set(uint8_t g, uint8_t r, uint8_t b)
{
green = g;
red = r;
blue = b;
}
void set(const uint8_t* grb)
{
set(grb[0], grb[1], grb[2]);
}
uint32_t get()
{
return green << 24 | red << 16 | blue << 8;
}
};
// GRB color
const pixel Callie = { 0xD0, 0xA0, 0xC8 };
const pixel Coqui = { 0xF4, 0xFF, 0x91 };
const pixel Meat = { 0xEA, 0xCD, 0xBF };
const pixel Olivia = { 0xCC, 0xFF, 0xE7 };