PLAYGROUND (experimental)

normalize

Maps a number from one range to a value between 0 and 1
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

NameTypeRequiredDefaultDescription
valueyes-
startyes-
stopyes-