View source

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

Available on all platforms

A uniform color scale devised by Hunter in 1958 for use in a color difference meter. It is based on Hering's opponent-colors theory of vision.

Class Fields

inline function create(l:Float, a:Float, b:Float):HunterLab

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

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

Instance Fields

var a(get,null):Float

var b(get,null):Float

var l(get,null):Float

function distance(other:HunterLab):Float

function equals(other:HunterLab):Bool

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

function match(palette:Iterable<HunterLab>):HunterLab

function max(other:HunterLab):HunterLab

function min(other:HunterLab):HunterLab

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

function roundTo(decimals:Int):HunterLab

function toCmy():Cmy

function toCmyk():Cmyk

function toGrey():Grey

function toHsl():Hsl

function toHsv():Hsv

function toLCh():LCh

function toLab():Lab

function toLuv():Luv

function toRgb():Rgb

function toRgba():Rgba

function toRgbx():Rgbx

function toRgbxa():Rgbxa

function toString():String

function toXyz():Xyz

function toYuv():Yuv

function toYxy():Yxy

function withA(newa:Float):HunterLab

function withB(newb:Float):HunterLab

function withL(newl:Float):HunterLab