parseCMYK

parseCMYK(object)

Parse a CMYK string of the form “C_M_Y_K” into a CMYKColor instance.

static parseCMYK(str)
ParameterTypeDescription
strobject– a string like “30_100_0_30”

Return Value

CMYKColor

Exceptions

exceptioncondition
Errorif the format is invalid or values are not numeric

See Also