View source

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

Available on all platforms

A version of Hsl with support for an additional alpha channel.

Class Fields

inline function create(hue:Float, saturation:Float, lightness:Float, alpha:Float):Hsla

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

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

Instance Fields

var alpha(get,null):Float

var hue(get,null):Float

var lightness(get,null):Float

var saturation(get,null):Float

function analogous(spread:Float = 30.0):Tuple2<Hsla, Hsla>

function complement():Hsla

function darker(t:Float):Hsla

function equals(other:Hsla):Bool

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

function lighter(t:Float):Hsla

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

function normalize():Hsla

function opaque(t:Float):Hsla

function rotate(angle:Float):Hsla

function roundTo(decimals:Int):Hsla

function split(spread:Float = 150.0):Tuple2<Hsla, Hsla>

function toCss3():String

function toHsl():Hsl

function toHsva():Hsva

function toRgb():Rgb

function toRgba():Rgba

function toRgbxa():Rgbxa

function toString():String

function transparent(t:Float):Hsla

function withAlpha(newalpha:Float):Hsla

function withHue(newhue:Float):Hsla

function withLightness(newlightness:Float):Hsla

function withSaturation(newsaturation:Float):Hsla