A 32 bit ARGB color value which is represented as an Integer.

Variables

@:implA:FastFloat

Contains a float representing the alpha color component (more exactly the opacity component - a value of 0 is fully transparent).

@:implAb:Int

Contains a byte representing the alpha color component (more exactly the opacity component - a value of 0 is fully transparent).

@:implB:FastFloat

Contains a float representing the blue color component.

@:implBb:Int

Contains a byte representing the blue color component.

@:implG:FastFloat

Contains a float representing the green color component.

@:implGb:Int

Contains a byte representing the green color component.

@:implR:FastFloat

Contains a float representing the red color component.

@:implRb:Int

Contains a byte representing the red color component.

@:implvalue:Int

Return this Color instance as Int.

Static variables

@:value(0xff000000)staticinlineread onlyBlack:Color = 0xff000000

@:value(0xff0000ff)staticinlineread onlyBlue:Color = 0xff0000ff

@:value(0xff00ffff)staticinlineread onlyCyan:Color = 0xff00ffff

@:value(0xff00ff00)staticinlineread onlyGreen:Color = 0xff00ff00

@:value(0xffff00ff)staticinlineread onlyMagenta:Color = 0xffff00ff

@:value(0xffffa500)staticinlineread onlyOrange:Color = 0xffffa500

@:value(0xffffc0cb)staticinlineread onlyPink:Color = 0xffffc0cb

@:value(0xff800080)staticinlineread onlyPurple:Color = 0xff800080

@:value(0xffff0000)staticinlineread onlyRed:Color = 0xffff0000

@:value(0x00000000)staticinlineread onlyTransparent:Color = 0x00000000

@:value(0xffffffff)staticinlineread onlyWhite:Color = 0xffffffff

@:value(0xffffff00)staticinlineread onlyYellow:Color = 0xffffff00

Static methods

@:value({ a : 255 })staticfromBytes (r:Int, g:Int, b:Int, a:Int = 255):Color

Creates a new Color object from components in the range 0 - 255.

@:value({ a : 1 })staticfromFloats (r:FastFloat, g:FastFloat, b:FastFloat, a:FastFloat = 1):Color

Creates a new Color object from components in the range 0 - 1.

staticfromString (value:String):Color

Creates a new Color object from an HTML style #AARRGGBB string.

staticinlinefromValue (value:Int):Color

Creates a new Color object from a packed 32 bit ARGB value.