Clamps a number to be between a range, inclusive.
clamp(53, 0, 255) // return 53clamp(105, 0, 100) // return 100
The number to clamp.
The lowest amount the number can be.
The highest amount the number can be.
Generated using TypeDoc
Clamps a number to be between a range, inclusive.
Example