@TheCodingTrain
  @TheCodingTrain
The Coding Train | 3.7: Additive Waves - The Nature of Code @TheCodingTrain | Uploaded 3 years ago | Updated 12 minutes ago
This video builds on the previous sine wave visualization in p5.js example. Here, I build a Wave class with variables for period, amplitude, and phase, and demonstrate how to add multiple wave patterns together! Code: thecodingtrain.com/tracks/the-nature-of-code-2/noc/3-angles/7-additive-waves

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

πŸŽ₯ Previous video: youtu.be/JLAc9hMtcxk?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
πŸŽ₯ All videos: youtube.com/playlist?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM

Videos:
πŸŽ₯ Simple Pendulum Simulation: youtu.be/NBWMtlbbOag

Timestamps:
0:00 Welcome back!
0:26 How do we make a wave class?
2:02 The formula we'll use for a wave.
4:53 Let's make a wave class.
7:33 Why did we spend the time to make the wave class?
8:08 Adding waves together!
9:39 Let's animate it!
10:40 A couple small improvements.
11:21 I hope you try some of these ideas!
11:43 What's next?

Editing by Mathieu Blanchette
Animations by Jason Heglund
Music from Epidemic Sound

πŸš‚ Website: http://thecodingtrain.com
πŸ‘Ύ Share Your Creation! thecodingtrain.com/guides/passenger-showcase-guide
🚩 Suggest Topics: github.com/CodingTrain/Suggestion-Box
πŸ’‘ GitHub: github.com/CodingTrain
πŸ’¬ Discord: thecodingtrain.com/discord
βœͺ Nebula: go.nebula.tv/codingtrain
πŸ’– Membership: http://youtube.com/thecodingtrain/join
πŸ›’ Store: standard.tv/codingtrain
πŸ–‹οΈ Twitter: twitter.com/thecodingtrain
πŸ“Έ Instagram: instagram.com/the.coding.train

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

πŸ”— p5.js: p5js.org
πŸ”— p5.js Web Editor: editor.p5js.org
πŸ”— Processing: processing.org

πŸ“„ Code of Conduct: github.com/CodingTrain/Code-of-Conduct

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

#forbeginners #javascript #p5js
3.7: Additive Waves - The Nature of Code5.2 Seeking a Target - The Nature of CodeCoding Challenge 183: Paper Marbling Algorithm4.4: Particle Systems with Image Textures - The Nature of CodeCoding Trade Live:  Side Project Saturday! (Live from the Attic)ml5.js: Image ClassificationSide Project Saturday!Coding Challenge 171: Wave Function Collapse11.4: Brightness Mirror - p5.js TutorialCoding Challenge 178: Climate Spiral5.7 Path Following (Steering) - Nature of CodeStickers!

3.7: Additive Waves - The Nature of Code @TheCodingTrain

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER