2.5: The map() Function - p5.js Tutorial

Subscribers:
1,740,000
Published on ● Video Link: https://www.youtube.com/watch?v=nicMAoW6u1g



Category:
Tutorial
Duration: 10:02
302,302 views
4,759


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/code-programming-with-p5-js/code/2-variables/5-map

πŸ•ΉοΈ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/yJqbGf71

πŸŽ₯ Previous video: https://youtu.be/POn4cZ0jL-o?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
πŸŽ₯ Next video: https://youtu.be/TaluaAD9MKA?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA
πŸŽ₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA

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/passenger-showcase-guide
🚩 Suggest Topics: https://github.com/CodingTrain/Suggestion-Box
πŸ’‘ GitHub: https://github.com/CodingTrain
πŸ’¬ Discord: https://discord.gg/hPuGy2g
πŸ’– Membership: http://youtube.com/thecodingtrain/join
πŸ›’ Store: https://standard.tv/codingtrain
πŸ–‹οΈ Twitter: https://twitter.com/thecodingtrain
πŸ“Έ Instagram: https://www.instagram.com/the.coding.train/

πŸŽ₯ Coding Challenges: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
πŸŽ₯ Intro to Programming: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6Zy51Q-x9tMWIv9cueOFTFA

πŸ”— 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-of-Conduct

This description was auto-generated. If you see a problem, please open an issue: https://github.com/CodingTrain/thecodingtrain.com/issues/new

#math #basics #p5js #javascript







Tags:
map
JavaScript (Programming Language)
p5.js
variable
Tutorial
p5js
daniel shiffman map
js map
p5.js map
javascript
creative coding
p5js tutorial
p5.js map()
daniel shiffman
p5.js tutorial
coding
programming