3 lines
69 B
Python
3 lines
69 B
Python
def clamp(x, bottom=0, top=100):
|
|
return min(max(bottom, x), top)
|
def clamp(x, bottom=0, top=100):
|
|
return min(max(bottom, x), top)
|