loom & weft
Made for Swift.

Published release 0.2.1. Unreleased PR #2 reference.

LOOM 0.2.1 / PLOTTING AND CALENDARS

CanvasShape

An application-defined coordinate-space shape; compose the context's clipped drawing commands.

Standard inherited Swift protocol operations such as synthesized equality and OptionSet set operations are not repeated. The public declarations below are extracted from the exact source revision listed in the coverage manifest.

Members on this page

Feature guides and release status

CanvasShape

Protocol
protocol CanvasShape

An application-defined coordinate-space shape; compose the context's clipped drawing commands.

Source · Canvas.swift:366

draw(in:)

Instance Method
func draw(in context: inout CanvasContext)

Draws a reusable application-supplied shape into the provided canvas context.

Parameters (1)
in
Argument type and any default are shown in the declaration; see the behavior notes above.
Source · Canvas.swift:367