Unreleased APIs from PR #2. Not in 0.2.1. Stable 0.2.1 reference.
LOOM Unreleased (PR #2) / SUPPORTING WEFT TYPES
TerminalRGB
A reported RGB color, with each channel normalized to 0...65535.
Defined by weft, with no loom typealias. Add the weft product to your target and use import weft when referring to this type by name.
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
TerminalRGB
struct TerminalRGBConforms to: Swift.Equatable, Swift.Sendable, Swift.SendableMetatype.
A reported RGB color, with each channel normalized to 0...65535.
Source · TerminalQuery.swift:39red
let red: UInt16A public field of this type. Its value type and mutability are shown in the declaration.
Source · TerminalQuery.swift:40green
let green: UInt16A public field of this type. Its value type and mutability are shown in the declaration.
Source · TerminalQuery.swift:41blue
let blue: UInt16A public field of this type. Its value type and mutability are shown in the declaration.
Source · TerminalQuery.swift:42init(red:green:blue:)
init(red: UInt16, green: UInt16, blue: UInt16)Creates a value with the supplied arguments. Default arguments are shown in the declaration.
Parameters (3)
red- Argument type and any default are shown in the declaration; see the behavior notes above.
green- Argument type and any default are shown in the declaration; see the behavior notes above.
blue- Argument type and any default are shown in the declaration; see the behavior notes above.