Color
public struct Color
RGB representation of target color.
-
Red component of color from 0-255.
Declaration
Swift
public let red: Int
-
Green component of color from 0-255.
Declaration
Swift
public let green: Int
-
Blue component of color from 0-255.
Declaration
Swift
public let blue: Int
-
Initialize an LED color.
Declaration
Swift
public init(red: Int, green: Int, blue: Int)
Parameters
red
Red component of color from 0-255.
green
Green component of color from 0-255.
blue
Blue component of color from 0-255.