Package org.wicketstuff.flot
Class Color
- java.lang.Object
-
- org.wicketstuff.flot.Color
-
- All Implemented Interfaces:
Serializable
public class Color extends Object implements Serializable
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description float
blue()
float
green()
String
html()
static Color
random()
float
red()
Color
scale(float fr, float fg, float fb)
Returns a copy of this color the values of which are multiplied with the according factors and cropped to 0..1.String
toString()
-
-
-
Method Detail
-
red
public float red()
-
green
public float green()
-
blue
public float blue()
-
html
public String html()
-
random
public static Color random()
-
scale
public Color scale(float fr, float fg, float fb)
Returns a copy of this color the values of which are multiplied with the according factors and cropped to 0..1.- Parameters:
fr
- The factor for red.fg
- The factor for green.fb
- The factor for blue.- Returns:
- scaled copy.
-
-