Function rgbToCmy

  • Convert the given sRGB color to a CMY color. Based on the EasyRGB pseudo-code.

    Parameters

    • color: Rgb

      The sRGB color.

    Returns Cmy

    A CMY color.