CMYK
Cyan, Magenta, Yellow, Black
All values are between 0 and 100 (as in, percent).
** Calculations do not take pigment conversion into account and should not be used to reference printed colors. All CMYK methods and conversions are only a very rough approximation.
New Color
Color.from('cmyk', [c, m, y, k])
Conversion to
.to('cmyk', {
round: boolean, // optional, default = true
})
Get methods
.getC(): number
.getM(): number
.getY(): number
.getK(): number
JavaScript
const Color = require('chromaticity-color-utilities')
const color1 = Color.from('cmyk', [0, 100, 0, 0])
const color3 = color2.to('cmyk')
TypeScript
import Color from 'chromaticity-color-utilities'
const color: Color.cmyk = Color.from('cmyk', [0, 100, 0, 0])