public static String createRGBString(Color c){
  return "rgb(" + (c.getRed() * 255) + ","+ (c.getGreen() * 255)+ ","+ (c.getBlue() * 255)+ ");";
}

public static String createRGBString ( Color c ) { return "rgb(" + ( c . getRed ( ) * 255 ) + "," + ( c . getGreen ( ) * 255 ) + "," + ( c . getBlue ( ) * 255 ) + ");" ; }
creates css rgb string from the given color .
