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
alpha
The alpha component of the color, in the range [0, 255].
red
The red component of the color, in the range [0, 255].
green
The green component of the color, in the range [0, 255].
blue
The blue component of the color, in the range [0, 255].