waba.fx
Class Color
waba.lang.Object
|
+--waba.fx.Color
- public class Color
- extends Object
Color represents a color.
A color is defined as a mixture of red, green and blue color values.
Each value is in the range of 0 to 255 where 0 is darkest and 255 is brightest.
For example, Color(255, 0, 0) is the color red.
Here are some more examples:
- Color(0, 0, 0) is black
- Color(255, 255, 255) is white
- Color(255, 0, 0 ) is red
- Color(0, 255, 0) is green
- Color(0, 0, 255) is blue
Constructor Summary |
Color(int red,
int green,
int blue)
Constructs a color object with the given red, green and blue values. |
Method Summary |
int |
getBlue()
Returns the blue value of the color. |
int |
getGreen()
Returns the green value of the color. |
int |
getRed()
Returns the red value of the color. |
Color
public Color(int red,
int green,
int blue)
- Constructs a color object with the given red, green and blue values.
- Parameters:
red
- the red value in the range of 0 to 255green
- the green value in the range of 0 to 255blue
- the blue value in the range of 0 to 255
getBlue
public int getBlue()
- Returns the blue value of the color.
getGreen
public int getGreen()
- Returns the green value of the color.
getRed
public int getRed()
- Returns the red value of the color.