Color
public struct Color
Represents a 3-component RGB color where each component is 8 bits. Used for specifying log output colors.
-
The red component of the color.
Declaration
Swift
public private(set) var r: Component
-
A type representing a single color component. A value of
0x00
represents absense of the color, while0xFF
indicates color at full brightness.Declaration
Swift
public typealias Component = UInt8
-
The green component of the color.
Declaration
Swift
public private(set) var g: Component
-
The blue component of the color.
Declaration
Swift
public private(set) var b: Component