#include #include class RGBA { private: std::uint8_t m_red; std::uint8_t m_green; std::uint8_t m_blue; std::uint8_t m_alpha; public: RGBA(std::uint8_t red = 0, std::uint8_t green = 0, std::uint8_t blue = 0, std::uint8_t alpha = 255) : m_red(red), m_green(green), m_blue(blue), m_alpha(alpha) {} void print() { std::cout << "r=" << static_cast(m_red) << " g=" << static_cast(m_green) << " b=" << static_cast(m_blue) << " a=" << static_cast(m_alpha) << std::endl; } };