fillPath(using:)
Paints the area within the current path, as determined by the specified fill rule.
Declaration
func fillPath(using rule: CGPathFillRule = .winding)Parameters
- rule:
The rule for determining which areas to treat as the interior of the path. See Cgpathfillrule.
This parameter defaults to the Winding rule if unspecified.
Discussion
If the current path contains any non-closed subpaths, this method treats each subpath as if it had been closed with the closePath() method, then applies the specified rule to determine which areas to fill.
After filling the path, this method clears the context’s current path.