map
map(value, start1, stop1, start2, stop2)
Re-maps a number from one range to another
Syntaxe
map(5, 0, 10, 0, 100) // returns 50
Arguments
| Name | Required | Default | Description |
|---|---|---|---|
value | yes | - | |
start1 | yes | - | |
stop1 | yes | - | |
start2 | yes | - | |
stop2 | yes | - |
map(value, start1, stop1, start2, stop2)
Re-maps a number from one range to another
map(5, 0, 10, 0, 100) // returns 50
| Name | Required | Default | Description |
|---|---|---|---|
value | yes | - | |
start1 | yes | - | |
stop1 | yes | - | |
start2 | yes | - | |
stop2 | yes | - |