UNPKG

lib-colors

Version:

Simple node.js library for work with colors

10 lines (9 loc) 384 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.cmykToString = cmykToString; const alpha_is_set_helper_1 = require("../../helpers/alpha_is_set.helper"); function cmykToString(cmyk) { const { c, m, y, k, a } = { ...cmyk }; const aValue = (0, alpha_is_set_helper_1.alphaIsSet)(a) ? ` ${a}` : ''; return `${c} ${m} ${y} ${k}${aValue}`; }