clamp
clamp(value, min, max) ⇒ number
Constrain a value to lie between specified min/max values
Kind: global function
Param | Type |
---|---|
value | number |
min | number |
max | number |
number
Constrain a value to lie between specified min/max values
Kind: global function
Param | Type |
---|---|
value | number |
min | number |
max | number |