RaySupreme Script API
 All Data Structures Functions Pages
Public Member Functions
Rgb Class Reference

Public Member Functions

 Rgb ()
 
 Rgb (int red, int green, int blue)
 
int red (void)
 
int green (void)
 
int blue (void)
 
void setRed (int red)
 
void setGreen (int green)
 
void setBlue (int blue)
 
int minComponent ()
 
int maxComponent ()
 

Detailed Description

The Rgb class represents an Rgb color value.

Constructor & Destructor Documentation

Rgb::Rgb ( )

Constructs a black, empty Rgb value.

Rgb::Rgb ( int  red,
int  green,
int  blue 
)

Creates an Rgb class using the specified rgb values.

Parameters
redThe red component in 0..255.
greenThe green component in 0..255.
blueThe blue component in 0..255.

Member Function Documentation

int Rgb::blue ( void  )

Returns the blue color component.

Returns
The blue color component.
int Rgb::green ( void  )

Returns the green color component.

Returns
The green color component.
int Rgb::maxComponent ( )

Returns the biggest of the 3 color components.

Returns
The maximum color component.
int Rgb::minComponent ( )

Returns the smallest of the 3 color components.

Returns
The minimum color component.
int Rgb::red ( void  )

Returns the red color component.

Returns
The red color component.
void Rgb::setBlue ( int  blue)

Sets the blue color component.

Parameters
Theblue color component.
void Rgb::setGreen ( int  green)

Sets the green color component.

Parameters
Thegreen color component.
void Rgb::setRed ( int  red)

Sets the red color component.

Parameters
Thered color component.