fill(_:with:style:)
Draws a path into the context and fills the outlined region.
Declaration
func fill(_ path: Path, with shading: GraphicsContext.Shading, style: FillStyle = FillStyle())Parameters
- path:
The outline of the region to fill.
- shading:
The color or pattern to use when filling the region bounded by
path. - style:
A style that indicates how to rasterize the path.
Discussion
The current drawing state of the context defines the full drawing operation. For example, the current transformation and clip shapes, and any styles applied to the result, affect the final result.