View source

abstract thx.color.Rgbxa(Array<Float>)

Available on all platforms

A version of Rgbx with an additional alpha channel for transparency.

Class Fields

inline function create(red:Float, green:Float, blue:Float, alpha:Float):Rgbxa

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

function fromInt(value:Int):Rgbxa

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

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

Instance Fields

var alpha(get,null):Int

var alphaf(get,null):Float

var blue(get,null):Int

var bluef(get,null):Float

var green(get,null):Int

var greenf(get,null):Float

var inSpace(get,null):Bool

var red(get,null):Int

var redf(get,null):Float

function combineColor(other:Rgbx):Rgbx

function darker(t:Float):Rgbxa

function equals(other:Rgbxa):Bool

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

function lighter(t:Float):Rgbxa

function nearEquals(other:Rgbxa, tolerance:Float = Floats.EPSILON):Bool

function normalize():Rgbx

function opaque(t:Float):Rgbxa

function roundTo(decimals:Int):Rgbxa

function toCss3():String

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

function toHsla():Hsla

function toHsva():Hsva

function toRgb():Rgb

function toRgba():Rgba

function toRgbx():Rgbx

function toString():String

function transparent(t:Float):Rgbxa

function withAlpha(newalpha:Float):Rgbxa

function withBlue(newblue:Int):Rgbxa

function withGreen(newgreen:Int):Rgbxa

function withRed(newred:Int):Rgbxa