loom & weft
Made for Swift.

Published release 0.2.1. Unreleased PR #2 reference.

LOOM 0.2.1 / 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

Structure
struct TerminalRGB

Conforms to: Swift.Equatable, Swift.Sendable, Swift.SendableMetatype.

A reported RGB color, with each channel normalized to 0...65535.

Source · TerminalQuery.swift:39

red

Instance Property
let red: UInt16

A public field of this type. Its value type and mutability are shown in the declaration.

Source · TerminalQuery.swift:40

green

Instance Property
let green: UInt16

A public field of this type. Its value type and mutability are shown in the declaration.

Source · TerminalQuery.swift:41

blue

Instance Property
let blue: UInt16

A public field of this type. Its value type and mutability are shown in the declaration.

Source · TerminalQuery.swift:42

init(red:green:blue:)

Initializer
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.
Source · TerminalQuery.swift:44