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