Color
open class Color
Used to set colors of figures generated by CanvasGraphics framework
-
Undocumented
Declaration
Swift
public static let black: Color -
Undocumented
Declaration
Swift
public static let white: Color -
Undocumented
Declaration
Swift
public static let red: Color -
Undocumented
Declaration
Swift
public static let orange: Color -
Undocumented
Declaration
Swift
public static let yellow: Color -
Undocumented
Declaration
Swift
public static let green: Color -
Undocumented
Declaration
Swift
public static let blue: Color -
Undocumented
Declaration
Swift
public static let purple: Color -
Sets the desired colour.
To understand hue, saturation, and brightness, see this summary or this for more details.
Declaration
Swift
public init(hue: Float, saturation: Float, brightness: Float, alpha: Float)Parameters
hueValue between 0 and 360 describing hue
saturationValue between 0 and 100 describing amount of saturation
brightnessValue between 0 and 100 describing brightness
alphaValue between 0 and 100 describing opacity
-
Undocumented
Declaration
Swift
public convenience init(hue: Int, saturation: Int, brightness: Int, alpha: Int)
View on GitHub
Color Class Reference