Static variables

@:value(new Color(0, 0, 1, 1))staticfinalread onlyBLUE:Color = new Color(0, 0, 1, 1)

@:value(new Color(0, 1, 0, 1))staticfinalread onlyGREEN:Color = new Color(0, 1, 0, 1)

@:value(new Color(1, 0, 1, 1))staticfinalread onlyMAGENTA:Color = new Color(1, 0, 1, 1)

@:value(new Color(1, 0, 0, 1))staticfinalread onlyRED:Color = new Color(1, 0, 0, 1)

@:value(new Color(1, 1, 1, 1))staticfinalread onlyWHITE:Color = new Color(1, 1, 1, 1)

Static methods

staticrgb888ToColor(color:Color, value:Int):Void

staticrgba8888ToColor(color:Color, value:Int):Void

Constructor

@:value({ a : 0, b : 0, g : 0, r : 0 })new(r:Float = 0, g:Float = 0, b:Float = 0, a:Float = 0)

Variables

a:Float

b:Float

g:Float

r:Float

Methods

add(r:Float, g:Float, b:Float, a:Float):Color

set(r:Float, g:Float, b:Float, a:Float):Color

setFromString(hex:String):Color