public class ColorUtils
extends java.lang.Object
| Constructor and Description |
|---|
ColorUtils() |
| Modifier and Type | Method and Description |
|---|---|
static void |
HSVtoRGB(float[] hsv,
float[] rgb)
Convert an HSV color to RGB representation.
|
static void |
interpolateColor(float[] result,
float[] color0,
float[] color1,
double s)
Computes
(1-s) color0 + s color1 and places the result
in result. |
static boolean |
RGBAequals(float[] rgba1,
float[] rgba2,
float eps)
Checks if two colors differ within supplied epsilon.
|
static void |
RGBtoHSV(float[] hsv,
float[] rgb)
Convert an RGB color to HSV representation.
|
public static boolean RGBAequals(float[] rgba1,
float[] rgba2,
float eps)
rgba1 - first colorrgba2 - second colorpublic static void interpolateColor(float[] result,
float[] color0,
float[] color1,
double s)
(1-s) color0 + s color1 and places the result
in result. Only the first three array entries are used.result - result valuecolor0 - first colorcolor1 - second colors - interpolation parameterpublic static void HSVtoRGB(float[] hsv,
float[] rgb)
public static void RGBtoHSV(float[] hsv,
float[] rgb)