normalize
normalize(value, start, stop)
Maps a number from one range to a value between 0 and 1
Syntaxe
normalize(PI, 0, TAU) // returns 0.5
Arguments
| Name | Required | Default | Description |
|---|---|---|---|
value | yes | - | |
start | yes | - | |
stop | yes | - |
normalize(value, start, stop)
Maps a number from one range to a value between 0 and 1
normalize(PI, 0, TAU) // returns 0.5
| Name | Required | Default | Description |
|---|---|---|---|
value | yes | - | |
start | yes | - | |
stop | yes | - |