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]
How to write it
map value from_low from_high to_low to_high
Gives a number.
reference / maths
mapMoves 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]
map value from_low from_high to_low to_high
Gives a number.