MTRGBAColor
public struct MTRGBAColor : Sendable, Codable
RGBA color represented by 0…255 components.
-
Undocumented
Declaration
Swift
public var red: Int -
Undocumented
Declaration
Swift
public var green: Int -
Undocumented
Declaration
Swift
public var blue: Int -
Undocumented
Declaration
Swift
public var alpha: Int? -
Initializes the color with individual components.
Declaration
Swift
public init(red: Int, green: Int, blue: Int, alpha: Int? = nil) -
Initializes the color from
UIColor, preserving alpha.Declaration
Swift
public init(color: UIColor) -
Declaration
Swift
public init(from decoder: any Decoder) throws -
Declaration
Swift
public func encode(to encoder: Encoder) throws