Contents

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