public float[] getColorComponents (float[] compArray)

Returns a float array containing only the color components of the Color, in the ColorSpace of the Color. If compArray is null, an array with length equal to the number of components in the associated ColorSpace is created for the return value. Otherwise, compArray must have at least this length and it is filled in with the components and returned.

Parameters:
compArray    an array that this method fills with the color components of this Color in its ColorSpace and returns

Returns:  the color components in a float array.