View source

abstract thx.color.Grey(Float) from Float to Float

Available on all platforms

A gray scale color space that ranges from white to black.

Class Fields

var black(default,null):Grey

var white(default,null):Grey

inline function create(v:Float):Grey

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

Instance Fields

var grey(get,null):Float

inline function new(grey:Float):Grey

function contrast():Grey

function darker(t:Float):Grey

function equals(other:Grey):Bool

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

function lighter(t:Float):Grey

function max(other:Grey):Grey

function min(other:Grey):Grey

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

function normalize():Grey

function roundTo(decimals:Int):Grey

function toCmy():Cmy

function toCmyk():Cmyk

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