22 #ifndef FIFE_VIDEO_COLOR_H
23 #define FIFE_VIDEO_COLOR_H
65 return !(*
this == color);
73 }
else if (
m_g != rhs.
m_g) {
75 }
else if (
m_b != rhs.
m_b) {
139 #endif //FIFE_VIDEO_COLOR_H
bool operator<(const Color &rhs) const
Overload less operator.
bool operator==(const Color &color) const
Compares equality of two colors.
void setG(uint8_t g)
Set green channel value.
void setB(uint8_t b)
Set blue channel value.
void setAlpha(uint8_t alpha)
Set alpha channel value.
bool operator!=(const Color &color) const
Compares unequality of two colors.
void set(uint8_t r, uint8_t g, uint8_t b, uint8_t alpha)
Set all color channel values.
Color(uint8_t r=0, uint8_t g=0, uint8_t b=0, uint8_t alpha=255)
Constructor.
void setR(uint8_t r)
Set red channel value.