#pragma once #include typedef dword RGBA32; class Color { public: enum NamedColor { Black, White, Red, Green, Blue, Yellow, Magenta, DarkGray, MidGray, LightGray, }; Color() { } Color(NamedColor); Color(byte r, byte g, byte b) : m_value((r << 16) | (g << 8) | b) { } Color(RGBA32 rgba) : m_value(rgba) { } RGBA32 value() const { return m_value; } private: RGBA32 m_value { 0 }; };