public static final float[] convertColor(Color color){
  return color.getRGBComponents(null);
}

public static final float [ ] convertColor ( Color color ) { return color . getRGBComponents ( null ) ; }
returns an array of color components for the given color object .
