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

Static variables

staticA:FastFloat

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

staticAb:Int

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

staticB:FastFloat

Contains a float representing the blue color component.

staticBb:Int

Contains a byte representing the blue color component.

staticG:FastFloat

Contains a float representing the green color component.

staticGb:Int

Contains a byte representing the green color component.

staticR:FastFloat

Contains a float representing the red color component.

staticRb:Int

Contains a byte representing the red color component.

staticvalue:Int

Return this Color instance as Int.

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 / #RRGGBB / #RGB strings.

staticinlinefromValue(value:Int):Color

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

Variables

@:value(cast 0xff000000)@:impl@:enuminlineread onlyBlack:Color = 0xff000000

@:value(cast 0xff0000ff)@:impl@:enuminlineread onlyBlue:Color = 0xff0000ff

@:value(cast 0xff00ffff)@:impl@:enuminlineread onlyCyan:Color = 0xff00ffff

@:value(cast 0xff00ff00)@:impl@:enuminlineread onlyGreen:Color = 0xff00ff00

@:value(cast 0xffff00ff)@:impl@:enuminlineread onlyMagenta:Color = 0xffff00ff

@:value(cast 0xffffa500)@:impl@:enuminlineread onlyOrange:Color = 0xffffa500

@:value(cast 0xffffc0cb)@:impl@:enuminlineread onlyPink:Color = 0xffffc0cb

@:value(cast 0xff800080)@:impl@:enuminlineread onlyPurple:Color = 0xff800080

@:value(cast 0xffff0000)@:impl@:enuminlineread onlyRed:Color = 0xffff0000

@:value(cast 0x00000000)@:impl@:enuminlineread onlyTransparent:Color = 0x00000000

@:value(cast 0xffffffff)@:impl@:enuminlineread onlyWhite:Color = 0xffffffff

@:value(cast 0xffffff00)@:impl@:enuminlineread onlyYellow:Color = 0xffffff00