Published release 0.2.1. Unreleased PR #2 reference.
LOOM 0.2.1 / PLOTTING AND CALENDARS
CanvasPoint
A position in caller-defined Cartesian coordinates; positive y points upward.
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
CanvasPoint
Structure
struct CanvasPointConforms to: Swift.Equatable, Swift.Sendable, Swift.SendableMetatype.
A position in caller-defined Cartesian coordinates; positive y points upward.
Source · Canvas.swift:5x
Instance Property
var x: DoubleZero-based column in terminal cells.
Source · Canvas.swift:6y
Instance Property
var y: DoubleZero-based row in terminal cells.
Source · Canvas.swift:7init(x:y:)
Initializer
init(x: Double, y: Double)Creates a value with the supplied arguments. Default arguments are shown in the declaration.
Parameters (2)
x- Argument type and any default are shown in the declaration; see the behavior notes above.
y- Argument type and any default are shown in the declaration; see the behavior notes above.