Class color
Defined in File color.hpp
Inheritance Relationships
Base Type
public rcppsw::er::stringizable
(Class stringizable)
Class Documentation
-
class color : public rcppsw::er::stringizable
A simple RGBA class representing colors as 4 8-bit numbers.
Should be used to make color usage agnostic across projects, and not tied to a particular platform, simulator, etc.
Public Functions
-
inline color(uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha = 255)
-
color(void) = default
-
inline uint8_t alpha() const
-
inline void alpha(uint8_t alpha)
-
inline uint8_t blue() const
-
inline void blue(uint8_t blue)
-
inline uint8_t green() const
-
inline void green(uint8_t green)
-
inline uint8_t red() const
-
inline void red(uint8_t red)
-
virtual std::string to_str(void) const override
Return a string representation of a class.
Public Static Attributes
-
inline color(uint8_t red, uint8_t green, uint8_t blue, uint8_t alpha = 255)