List of utility methods to do Byte Clamp
| byte | clamp(byte value, byte lower, byte upper) Clamp a value to an interval. return (value < lower ? lower : (value > upper ? upper : value));
|
| byte | CLAMP(byte x, byte min, byte max) CLAMP if (x < min) return min; if (x > max) return max; return x; |