class EE::System::RGB¶
Overview¶
Small class to help in some color operations. More…
#include <color.hpp> class RGB: public EE::System::tRGB { public: // construction RGB(); RGB(Uint8 r, Uint8 g, Uint8 b); RGB(const tRGB<Uint8>& color); RGB(Uint32 Col); // methods Color toColor(); };
Inherited Members¶
public: // fields T r; T g; T b; // methods bool operator==(const tRGB<T>& Col); bool operator!=(const tRGB<T>& Col);
Detailed Documentation¶
Small class to help in some color operations.
Construction¶
RGB(Uint8 r, Uint8 g, Uint8 b)
Creates an RGB color from each component.
Parameters:
r |
Red component |
g |
Green component |
b |
Blue component |