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

stroke(_:with:style:)

Draws a path into the context with a specified stroke style.

Declaration 宣言

func stroke(_ path: Path, with shading: GraphicsContext.Shading, style: StrokeStyle)

Parameters パラメータ

path

The path to outline.

shading

The color or pattern to use when outlining the path.

style

A style that indicates how to outline the path.

Discussion 議論

If you only need to control the style’s lineWidth property, use stroke(_:with:lineWidth:) instead.

See Also 参照

Drawing a Path