diff --git a/transform.py b/transform.py index 9b8c3bd..743f1fc 100644 --- a/transform.py +++ b/transform.py @@ -37,7 +37,9 @@ def clamp(value, low, high): Returns value if it is between low and high. If value is lower than low, returns low. If value is higher than high, returns high. """ - if low < value < high: + #if low < value < high: + # return value + if low < value and value < high: return value if value < low: return low