Class
Color
public final class Color
Relationships
Nested Types
Color.Name
Initializers
init(red:green:blue:)
public required init (red:UInt8, green:UInt8, blue:UInt8)
init(_:)
public init(_ name:Name)
Properties
style
public let style : String
red
public var red : UInt8
The red RGB value of the color
green
public var green : UInt8
The green RGB value of the color
blue
public var blue : UInt8
The blue RGB value of the color
Methods
lerp(to:percent:)
public func lerp(to target:Color, percent:Double) -> Self
- Parameters:
- target: The target Color to which to calculate the new Color between
- percent: Value between 0 and 1 representing percentage
- Returns: A new Color of percent between this Color and a target Color