2.4: The map() Function – p5.js Tutorial

This video covers the map() function in p5.js — how to take a value from a given range and map it to a new range.

Next video: https://youtu.be/nfmV2kuQKwA?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA

Support this channel on Patreon: https://www.patreon.com/codingrainbow

Contact: https://twitter.com/shiffman

Send me your questions and coding challenges!: https://github.com/CodingRainbow/Rainbow-Topics

Link to code on Github: https://github.com/CodingRainbow/Rainbow-Code

p5.js: http://p5js.org

For More p5.js Videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA

Help us caption & translate this video!