setStrokeColor(_:)
Sets the current stroke color.
Declaration
func setStrokeColor(_ 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 stroke color space, plus an additional component for the alpha value.
Discussion
The current stroke color space must not be a pattern color space. For information on setting the stroke color when using a pattern color space, see setStrokePattern(_:colorComponents:). Note that the preferred API is now setStrokeColor(_:).
See Also
Setting Fill, Stroke, and Shadow Colors
setFillColor(_:)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(cyan:magenta:yellow:black:alpha:)setStrokeColor(gray:alpha:)setStrokeColor(red:green:blue:alpha:)setStrokeColorSpace(_:)setStrokePattern(_:colorComponents:)setAlpha(_:)