View source

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

Available on all platforms

The CMYK color model (process color, four color) is a subtractive color model, used in color printing, and is also used to describe the printing process itself. CMYK refers to the four inks used in some color printing: cyan, magenta, yellow, and key (black). Though it varies by print house, press operator, press manufacturer, and press run, ink is typically applied in the order of the abbreviation.

Values for all the channels should be included in the 0, 1 range.

Class Fields

inline function create(cyan:Float, magenta:Float, yellow:Float, black:Float):Cmyk

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

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

Instance Fields

var black(get,null):Float

var cyan(get,null):Float

var magenta(get,null):Float

var yellow(get,null):Float

function darker(t:Float):Cmyk

function equals(other:Cmyk):Bool

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

function lighter(t:Float):Cmyk

function max(other:Cmyk):Cmyk

function min(other:Cmyk):Cmyk

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

function normalize():Cmyk

function roundTo(decimals:Int):Cmyk

function toCmy():Cmy

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 withBlack(newblack:Float):Cmyk

function withCyan(newcyan:Float):Cmyk

function withMagenta(newmagenta:Float):Cmyk

function withYellow(newyellow:Float):Cmyk