RGBA
struct RGBA : Hashable
The RGBA (red, green, blue, alpha) 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 -
The alpha component of the color, in the range [0, 255].
Declaration
Swift
public var alpha: Int -
Initializes the RGBA (red, green, blue, alpha) components of a color.
Declaration
Swift
public init(red: Int, green: Int, blue: Int, alpha: 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].
alphaThe alpha component of the color, in the range [0, 255].
View on GitHub
RGBA Structure Reference