Retrieves the closest solid color that the hardware will use for the specified color.
public final Color getNearestColor( Color color )
color
A Color object that specifies the color you want to use.
Returns a Color object that describes the color that will be used.