Function cmykToRgb

  • Converts CMYK values to RGB values.

    Parameters

    • cmyk: CMYK

      An object with c, m, y, and k properties.

    Returns RGB

    An object with r, g, and b properties.

    If the input is not a valid CMYK object or if CMYK values are out of range.