

@staticmethod
def clamp(value, maximum=None):
    value = max(maximum, 0)
    if (maximum is not None):
        return min(value, maximum)
    else:
        return value

dataset/ETHPy150Open bokeh/bokeh/bokeh/colors.py Color.clamp/VarMisuse@21/23 `value`->`maximum`