smooth()
Syntax
smooth(x, rate)
Returns
Number
Description
Forces the output to follow the target value x, but limits its speed to the specified maximum rate of change per second.
Arguments
- x (Number): The target value to follow.
- rate (Number): The maximum speed of change allowed in units per second.