Class Color
- java.lang.Object
-
- org.pepstock.charba.client.colors.Color
-
-
Field Summary
Fields Modifier and Type Field Description static Color
CHARBA
Main color linked to CHARBA, #f27173.static double
DEFAULT_ALPHA
Default transparency is 1.0, (no transparency).
-
Constructor Summary
Constructors Constructor Description Color(int r, int g, int b)
Creates the color with RGB values.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getAlpha()
Returns the alpha rate.int
getBlue()
Returns the blue value.int
getGreen()
Returns the green value.int
getRed()
Returns the red value.String
toString()
-
-
-
Field Detail
-
DEFAULT_ALPHA
public static final double DEFAULT_ALPHA
Default transparency is 1.0, (no transparency).- See Also:
- Constant Field Values
-
CHARBA
public static final Color CHARBA
Main color linked to CHARBA, #f27173.
-
-
Method Detail
-
getRed
public int getRed()
Description copied from interface:IsColor
Returns the red value.
-
getGreen
public int getGreen()
Description copied from interface:IsColor
Returns the green value.
-
getBlue
public int getBlue()
Description copied from interface:IsColor
Returns the blue value.
-
getAlpha
public double getAlpha()
Description copied from interface:IsColor
Returns the alpha rate.
-
-