View source

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

Available on all platforms

Rgbx stores its three channels into three floats allowing for a very high resolution.

Class Fields

inline function create(red:Float, green:Float, blue:Float):Rgbx

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

function fromInt(value:Int):Rgbx

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

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

Instance Fields

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 darker(t:Float):Rgbx

function equals(other:Rgbx):Bool

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

function lighter(t:Float):Rgbx

function max(other:Rgbx):Rgbx

function min(other:Rgbx):Rgbx

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

function normalize():Rgbx

function roundTo(decimals:Int):Rgbx

function toCmy():Cmy

function toCmyk():Cmyk

function toCss3():String

inline function toCubeHelix():CubeHelix

function toCubeHelixWithGamma(gamma:Float):CubeHelix

function toGrey():Grey

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

function toHsl():Hsl

function toHsv():Hsv

function toLCh():LCh

function toLab():Lab

function toLuv():Luv

function toRgb():Rgb

function toRgbxa():Rgbxa

function toString():String

function toXyz():Xyz

function toYuv():Yuv

function toYxy():Yxy

function withAlpha(alpha:Float):Rgbxa

function withBlue(newblue:Int):Rgbx

function withGreen(newgreen:Int):Rgbx

function withRed(newred:Int):Rgbx