(rgb, mono_tint, mono)
return tuple(int(_tint * intensity) // 255 for _tint in mono_tint)
Convert (r, g, b) tuple to tinted monochrome.
Convert (r, g, b) tuple to tinted monochrome.
Convert ( r g b ) tuple to tinted monochrome .
def _adjust_tint(rgb, mono_tint, mono):
    """Convert (r, g, b) tuple to tinted monochrome."""
    if not mono:
        return rgb
    intensity = sum(_value * _weight for _value, _weight in zip(rgb, _RGB_INTENSITY))
    return tuple(int(_tint * intensity) // 255 for _tint in mono_tint)
def _adjust_tint ( rgb , mono_tint , mono ) : if not mono : return rgb intensity = sum ( _value * _weight for _value , _weight in zip ( rgb , _RGB_INTENSITY ) ) return tuple ( int ( _tint * intensity ) // 255 for _tint in mono_tint )