@motion-script/core / clamp
Function: clamp()
clamp(
value,min,max):number
Defined in: util/clamp.ts:9
Clamps a number between a minimum and maximum value.
Parameters
value
number
The number to clamp.
min
number
The lower bound.
max
number
The upper bound.
Returns
number
The clamped number.