1.1 What is a Vector? - The Nature of Code
Welcome to Nature of Code Chapter 1: Vectors! What is a vector? How do they work in p5.js? These questions will all be answered in this first section of this series on p5.Vector. Code: https://thecodingtrain.com/tracks/the-nature-of-code-2/noc/1-vectors/1-what-is-a-vector
π Watch this video ad-free on Nebula https://nebula.tv/videos/the-coding-train-yt-1-1-what-is-a-vector-the-nature-of-code
πΉοΈ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/JmEToUfk
π₯ Previous video: https://youtu.be/y7sgcFhk6ZM?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
π₯ Next video: https://youtu.be/Rob0pbE7kks?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/
Videos:
π₯ Coding Challenge 52 - Random Walker: https://www.youtube.com/watch?v=l__fEY1xanY
π₯ Classes in JavaScript with ES6: https://www.youtube.com/watch?v=T-HGdc8L-7w
Timestamps:
0:00 Welcome to Chapter 1!
1:08 Scalars have magnitude
2:09 Vectors have magnitude and direction
3:40 Thinking of (x,y) as a vector
9:03 createVector()
9:34 Add vectors to the random walker code
11:35 Create a Walker object
14:00 Next up: start adding the foundation for a physics engine
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