RGB
struct RGB : Hashable
The RGB (red, green, blue) components of a color, in the range [0, 255].
-
The red component of the color, in the range [0, 255].
Declaration
Swift
public var red: Int -
The green component of the color, in the range [0, 255].
Declaration
Swift
public var green: Int -
The blue component of the color, in the range [0, 255].
Declaration
Swift
public var blue: Int -
Initializes the RGB (red, green, blue) components of a color.
Declaration
Swift
public init(red: Int, green: Int, blue: Int)Parameters
redThe red component of the color, in the range [0, 255].
greenThe green component of the color, in the range [0, 255].
blueThe blue component of the color, in the range [0, 255].
View on GitHub
RGB Structure Reference