In this video, I cover how to define, initialize, and use your own variables for the purpose of animating p5.js sketches. Code: [ Ссылка ]
p5.js Web Editor Sketches:
🕹️ Moving Circle: [ Ссылка ]
🕹️ Growing Circle: [ Ссылка ]
🎥 Previous video: [ Ссылка ]
🎥 Next video: [ Ссылка ]
🎥 All videos: [ Ссылка ]
Videos:
🚂 let vs var: [ Ссылка ]
Timestamps:
0:00 Hello! Let's talk more about variables!
0:18 What are we trying to make?
0:52 What are the steps to making a variable?
1:12 Step 1: Declare
3:01 Step 2: Initialize
4:21 Step 3: Use
5:03 Let's add the code!
5:49 Combining declaration and initialization.
6:43 What is a global variable?
7:31 But the circle isn't moving! How can we fix that?
9:19 How can we make it interactive?
9:50 What's next?
Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound
🚂 Website: [ Ссылка ]
👾 Share Your Creation! [ Ссылка ]
🚩 Suggest Topics: [ Ссылка ]
💡 GitHub: [ Ссылка ]
💬 Discord: [ Ссылка ]
💖 Membership: [ Ссылка ]
🛒 Store: [ Ссылка ]
🖋️ Twitter: [ Ссылка ]
📸 Instagram: [ Ссылка ]
🎥 Coding Challenges: [ Ссылка ]
🎥 Intro to Programming: [ Ссылка ]
🔗 p5.js: [ Ссылка ]
🔗 p5.js Web Editor: [ Ссылка ]
🔗 Processing: [ Ссылка ]
📄 Code of Conduct: [ Ссылка ]
This description was auto-generated. If you see a problem, please open an issue: [ Ссылка ]
#basics #variables #p5js #javascript
![](https://i.ytimg.com/vi/dRhXIIFp-ys/maxresdefault.jpg)