def cms_set_alarm_codes(r, g, b): """ Used to define gamut check marker. r,g,b are expected to be integers in range 0..255 """ if r in range(0, 256) and g in range(0, 256) and b in range(0, 256): _cms.setAlarmCodes(r, g, b) else: raise CmsError, 'r,g,b are expected to be integers in range 0..255'
def cms_set_alarm_codes(r, g, b): """ Used to define gamut check marker. r,g,b are expected to be integers in range 0..255 """ if r in range(0, 256) and g in range(0, 256) and b in range(0, 256): _cms.setAlarmCodes(r, g, b) else: raise CmsError, "r,g,b are expected to be integers in range 0..255"
def cms_set_alarm_codes(r, g, b): """Used to define gamut check marker. r,g,b are expected to be integers in range 0..255 :param r: red channel :param g: green channel :param b: blue channel """ if r in COLOR_RNG and g in COLOR_RNG and b in COLOR_RNG: _cms.setAlarmCodes(r, g, b) else: raise CmsError('r,g,b are expected to be integers in range 0..255')