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:


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.
 
Methods inherited from class waba.lang.Object
toString
 

Constructor Detail

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 255
green - the green value in the range of 0 to 255
blue - the blue value in the range of 0 to 255
Method Detail

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.