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. Code: https://thecodingtrain.com/tracks/cod...
🕹️ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/s...
🎥 Previous video: • 2.4: random() Function - p5.js Tutorial
🎥 Next video: • 2.6: createGraphics() - p5.js Tutorial
🎥 All videos: • Start learning here!
Timestamps:
0:00 Hello! Let's talk about the map function.
0:32 Let's start with an example.
3:03 Trying to change the range of mouseX without map().
4:17 That sort of worked, but what about other scenarios?
5:12 Let's see if I can explain how to use map().
7:44 How about we try it out!
8:27 Let's have some fun with map()!
9:39 How could you take this farther?
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
🚂 Website: http://thecodingtrain.com/
👾 Share Your Creation! https://thecodingtrain.com/guides/pas...
🚩 Suggest Topics: https://github.com/CodingTrain/Sugges...
💡 GitHub: https://github.com/CodingTrain
💬 Discord: / discord
💖 Membership: http://youtube.com/thecodingtrain/join
🛒 Store: https://standard.tv/codingtrain
🖋️ Twitter: / thecodingtrain
📸 Instagram: / the.coding.train
🎥 Coding Challenges: • Coding Challenges
🎥 Intro to Programming: • Start learning here!
🔗 p5.js: https://p5js.org
🔗 p5.js Web Editor: https://editor.p5js.org/
🔗 Processing: https://processing.org
📄 Code of Conduct: https://github.com/CodingTrain/Code-o...
This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecod...
#math #basics #p5js #javascript
Nesta página do site você pode assistir ao vídeo on-line 2.5: The map() Function - p5.js Tutorial duração hora minuto segundo em boa qualidade , que foi baixado pelo usuário The Coding Train 04 Setembro 2015, compartilhe o link com seus amigos e conhecidos, no youtube este vídeo já foi visto 336,633 vezes e gostou 5.1 mil espectadores. Boa visualização!