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 CanvasShapeAn application-defined coordinate-space shape; compose the context's clipped drawing commands.
Source · Canvas.swift:366draw(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.