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