
public class ColorHelper extends Object
| Constructor and Description |
|---|
ColorHelper() |
| Modifier and Type | Method and Description |
|---|---|
static float |
constrain(float amount,
float low,
float high)
Constrain float value.
|
static int |
HSLToColor(float h,
float s,
float l)
Convert HSL to color value.
|
public static int HSLToColor(float h,
float s,
float l)
h - float h value form HSL colors - float s value form HSL colorl - float l value form HSL colorpublic static float constrain(float amount,
float low,
float high)
amount - input valuelow - lower boundhigh - upper bound