PLAYGROUND (experimental)

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

NameTypeRequiredDefaultDescription
valueyes-
start1yes-
stop1yes-
start2yes-
stop2yes-