Color
public class Color : NSObject, JSONDictEncodable
Represents an RGB color in Sketch
-
Possible values are from 0 to 1
Declaration
Swift
public let red: CGFloat
-
Possible values are from 0 to 1
Declaration
Swift
public let green: CGFloat
-
Possible values are from 0 to 1
Declaration
Swift
public let blue: CGFloat
-
Possible values are from 0 to 1
Declaration
Swift
public let alpha: CGFloat
-
Creates a Color in RGB color space. Parameter values should be from 0 to 1
Declaration
Swift
public init(red: CGFloat, green: CGFloat, blue: CGFloat, alpha: CGFloat)
-
Undocumented
Declaration
Swift
required public init?(json: [String : Any])
-
Creates a transparent color
Declaration
Swift
public static var clear: Color { get }
-
Creates a white color
Declaration
Swift
public static var white: Color { get }