Instance Method インスタンスメソッド

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.

See Also 参照

Drawing a Path