map
Re-maps a number from one range to another
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 | Type | Required | Default | Description |
|---|---|---|---|---|
value | yes | - | ||
start1 | yes | - | ||
stop1 | yes | - | ||
start2 | yes | - | ||
stop2 | yes | - |