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!
Coding Train challenge on simulating a pendulum in p5js
- Editing
by Mathieu Blanchette
- Animations
by Jason Heglund