setFillColor(_:)
Sets the current fill color.
Declaration
func setFillColor(_ components: UnsafePointer<CGFloat>)Parameters
- components:
An array of intensity values describing the color to set. The number of array elements must equal the number of components in the current fill color space, plus an additional component for the alpha value.
Discussion
The current fill color space must not be a pattern color space. For information on setting the fill color when using a pattern color space, see setFillPattern(_:colorComponents:). Note that the preferred API to use is now setFillColor(_:).
See Also
Setting Fill, Stroke, and Shadow Colors
setFillColor(_:)setFillColor(cyan:magenta:yellow:black:alpha:)setFillColor(gray:alpha:)setFillColor(red:green:blue:alpha:)setFillColorSpace(_:)setShadow(offset:blur:)setShadow(offset:blur:color:)setStrokeColor(_:)setStrokeColor(_:)setStrokeColor(cyan:magenta:yellow:black:alpha:)setStrokeColor(gray:alpha:)setStrokeColor(red:green:blue:alpha:)setStrokeColorSpace(_:)setStrokePattern(_:colorComponents:)setAlpha(_:)