modulate
Public Function
Modulate a value between two ranges.
Example
const A = modulate(0, [0, 1], [0, 100])
Parameters
| Name | Description |
|---|---|
| The interpolation value. |
| From [low, high] |
| To [low, high] |
(optional) | Whether to clamp the the result to [low, high] |
Returns
number