|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.meltingice.caman.ColorUtil
public class ColorUtil
Utility class for color conversion
Constructor Summary | |
---|---|
ColorUtil()
|
Method Summary | |
---|---|
static int[] |
hsvToRgb(double[] hsv)
Converts a HSV array back to an RGB array. |
static double[] |
rgbToHsv(int[] rgb)
Converts an RGB array to an HSV array |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ColorUtil()
Method Detail |
---|
public static double[] rgbToHsv(int[] rgb)
rgb
- The RGB values to convert
public static int[] hsvToRgb(double[] hsv)
hsv
- The HSV color array
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |