
Color
Color Methods
| Color() | Constructor for the Color class using separate RGB values |
| Color() | Constructor for the Color class using another Color object |
| Red() | Returns the Red component of the Color object |
| Green() | Returns the Green component of the Color object |
| Blue() | Returns the Blue component of the Color object |
Derived Classes
None
See Also
Class Hierarchy, Window, Canvas, Font, Pen
public method Color(int Red, int Green, int Blue, Display Target = null)
Parameters
Red
Red component of the color (0-255)
Green
Green component of the color (0-255)
Blue
Blue component of the color (0-255)
Target
Display object where color is created and used
Return Value
None
Description
Constructor for the Color class. The color is based on the red, green and blue components passed in. The local display is used if Target is null.
Color Class
public method Color(Color ColorRef)
Parameters
ColorRef
Color to be copied for this new color
Return Value
None
Description
Constructor for the Color class. The new color uses the same color as the incoming Color object.
Color Class
public method<int> Red()
Parameters
None
Return Value
Red component of color
Description
This method returns the Red component of the Color object (0-255).
Color Class
public method<int> Green()
Parameters
None
Return Value
Green component of color
Description
This method returns the Green component of the Color object (0-255).
Color Class
public method<int> Blue()
Parameters
None
Return Value
Blue component of color
Description
This method returns the Blue component of the Color object (0-255).
Color Class