Draws the current color in the given rectangle.
- macOS 10.0+
The rectangle in which to draw the color.
Subclasses adorn the rectangle in some manner to indicate the type of color. This method is invoked by color wells, swatches, and other user interface objects that need to display colors.