1.3 Random Vectors - The Nature of Code

1.3 Random Vectors - The Nature of Code

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



Duration: 8:59
59,951 views
1,465


This video covers how to initialize a p5.js vector with p5.Vector.random2D(). Code: https://thecodingtrain.com/tracks/the-nature-of-code-2/noc/1-vectors/3-random-vectors

πŸš€ Watch this video ad-free on Nebula https://nebula.tv/videos/the-coding-train-yt-1-3-random-vectors-the-nature-of-code

p5.js Web Editor Sketches:
πŸ•ΉοΈ Random Vector: https://editor.p5js.org/codingtrain/sketches/qHKMdpRR
πŸ•ΉοΈ Walker: https://editor.p5js.org/codingtrain/sketches/_HHLfcGx

πŸŽ₯ Previous video: https://youtu.be/Rob0pbE7kks?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
πŸŽ₯ Next video: https://youtu.be/YN8Q-QEmQ8Y?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
πŸŽ₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM

References:
πŸ”— The Nature of Code Vectors: https://natureofcode.com/book/chapter-1-vectors/
πŸ”— p5.Vector Reference: https://p5js.org/reference/#/p5.Vector

Timestamps:
0:00 Introduction
1:04 Random vector generator
3:00 Unit vector
3:46 random2D()
4:35 Multiplying vectors by scalars using mult()

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://thecodingtrain.com/discord
βœͺ Nebula: https://go.nebula.tv/codingtrain
πŸ’– 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

#forbeginners #javascript #p5js