NSColor
public extension NSColor
-
init: Initialise a NSColor from a FREObject.
let clr = NSColor(freObject: argv[0])
Declaration
Swift
convenience init?(_ freObject: FREObject?, hasAlpha: Bool = true)
Parameters
freObject
FREObject which is of AS3 type uint
hasAlpha
Whether the uint is in 32bit ARGB hex format eg. 0xFF00FF00
Return Value
NSColor?
-
toFREObject: Converts a NSColor into a FREObject of AS3 type uint (ARGB).
Declaration
Swift
func toFREObject() -> FREObject?
Return Value
FREObject