View source

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

Available on all platforms

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

Class Fields

inline function create(hue:Float, saturation:Float, value:Float, alpha:Float):Hsva

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

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

Instance Fields

var alpha(get,null):Float

var hue(get,null):Float

var saturation(get,null):Float

var value(get,null):Float

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

function complement():Hsva

function equals(other:Hsva):Bool

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

function interpolateWidest(other:Hsva, t:Float):Hsva

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

function normalize():Hsva

function opaque(t:Float):Hsva

function rotate(angle:Float):Hsva

function roundTo(decimals:Int):Hsva

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

function toHsla():Hsla

function toHsv():Hsv

function toRgb():Rgb

function toRgba():Rgba

function toRgbxa():Rgbxa

function toString():String

function transparent(t:Float):Hsva

function withAlpha(newalpha:Float):Hsva

function withHue(newhue:Float):Hsva

function withLightness(newvalue:Float):Hsva

function withSaturation(newsaturation:Float):Hsva