Rgb

RGB color.

Constructors

this
this(int r, int g, int b)
Undocumented in source.

Members

Functions

getBlue
int getBlue()

Returns the blue value.

getGreen
int getGreen()

Returns the green value.

getRed
int getRed()

Returns the red value.

toCmyk
Cmyk toCmyk()

toCmyk(): defined by ColorInterface.

toGray
Gray toGray()

toGray(): defined by ColorInterface.

toRgb
Rgb toRgb()

toRgb(): defined by ColorInterface.

toString
string toString()

Returns a hexadecimal string representation of the RGB value.

Variables

blue
int blue;

Blue value.

green
int green;

Green value.

red
int red;

Red value.

Inherited Members

From ColorInterface

toRgb
Rgb toRgb()

Converts the color to RGB.

toCmyk
Cmyk toCmyk()

Converts the color to CMYK.

toGray
Gray toGray()

Converts the color to gray.

toString
string toString()
Undocumented in source.

Meta