28 typedef unsigned char uchar;
51 : _red( 0 ), _green( 0 ), _blue( 0 )
58 uchar
red()
const {
return _red; }
63 uchar
green()
const {
return _green; }
68 uchar
blue()
const {
return _blue; }
uchar red() const
Return the red component (0: none, 255: bright red).
bool isUndefined() const
Return 'true' if this color is undefined.
bool isDefined() const
Return 'true' if this color is defined.
uchar green() const
Return the green component (0: none, 255: bright green).
Helper class to define an RGB color.
YColor()
Default constructor: Create "undefined" color.
YColor(uchar red, uchar green, uchar blue)
Constructor.
uchar blue() const
Return the blue component (0: none, 255: bright blue).