def YCoCgtoRGB(Y, Co, Cg):
    """ convert YCoCg to RGB color
    The YCoCg color model was developed to increase the effectiveness of the image compression.
    This color model comprises the luminance (Y) and two color difference components
    (Co - offset orange, Cg - offset green).
    :param Y: Y value (0;255)
    :param Co: Co value (0;255)
    :param Cg: Cg value (0;255)
    :return: RGB tuple (0;255) """
    R = Y + Co - Cg
    G = Y + Cg
    B = Y - Co - Cg

    return R, G, B