List of usage examples for java.awt Color getComponents
public float[] getComponents(ColorSpace cspace, float[] compArray)
From source file:Main.java
public static void main(String[] args) { Color myColor = Color.RED; System.out.println(/* www .j a v a 2 s .c o m*/ Arrays.toString(myColor.getComponents(ColorSpace.getInstance(ColorSpace.CS_CIEXYZ), null))); }