rocinantealpha

reference / maths

map

Moves a number from one range to another.

draw [  background 240  shade = map mouse.x 0 400 0 255  circle at 200 150 radius 80 fill shade]
what it draws: the whole window, 400 by 300
What the example of map draws

How to write it

map value from_low from_high to_low to_high

Gives a number.

Related