View source

abstract thx.color.Rgba(Int) from Int to Int

Available on all platforms

A version of Rgb with an additional channel for alpha.

Rgba uses an Int as the underlying type.

Class Fields

inline function create(red:Int, green:Int, blue:Int, alpha:Int):Rgba

function fromFloats(arr:Array<Float>):Rgba

function fromInt(rgba:Int):Rgba

function fromInts(arr:Array<Int>):Rgba

function fromString(color:String):Null<Rgba>

Instance Fields

var alpha(get,null):Int

var blue(get,null):Int

var green(get,null):Int

var red(get,null):Int

inline function new(rgba:Int):Rgba

function combineColor(other:Rgb):Rgb

function darker(t:Float):Rgba

function equals(other:Rgba):Bool

function interpolate(other:Rgba, t:Float):Rgba

function lighter(t:Float):Rgba

function opaque(t:Float):Rgba

function toCss3():String

function toHex(prefix:String = "#"):String

function toHsla():Hsla

function toHsva():Hsva

function toRgb():Rgb

function toRgbx():Rgbx

function toRgbxa():Rgbxa

function toString():String

function transparent(t:Float):Rgba

function withAlpha(newalpha:Int):Rgba

function withAlphaf(newalpha:Float):Rgba

function withBlue(newblue:Int):Rgba

function withGreen(newgreen:Int):Rgba

function withRed(newred:Int):Rgba