
3.6 Graphing Sine Wave - Nature of Code
What does a sine wave look like? In this video I look at how to graph and animate a sine wave in p5.js varying the period and phase. Code: https://thecodingtrain.com/tracks/the-nature-of-code-2/noc/3-angles/6-graphing-sine-wave
p5.js Web Editor Sketches:
πΉοΈ Sine Wave Graph Exercise: https://editor.p5js.org/codingtrain/sketches/EIbEYLTaZ
πΉοΈ Playing With Period: https://editor.p5js.org/codingtrain/sketches/SbRC-G0lU
πΉοΈ Graphing Wave: https://editor.p5js.org/codingtrain/sketches/c_S9jiXz-
πΉοΈ Circular Wave Exercise: https://editor.p5js.org/codingtrain/sketches/mOm2Is7ba
π₯ Previous video: https://youtu.be/m463X1cqV6s?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
π₯ Next video: https://youtu.be/okfZRl4Xw-c?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
π₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZV4yEcW3uDwOgGXKUUsPOM
Timestamps:
0:00 Good to see you again!
0:31 How do we graph a wave?
1:30 Let's do that right now!
3:18 Let's try varying the period
4:22 Why are we here again?
5:05 Change the starting angles
6:52 What happens if we go back to angular velocity?
7:19 Whoa! Let's use a static increment value
8:10 Go make something awesome!
9:29 See you in the next video!
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
Other Videos By The Coding Train
2021-03-14 | Coding Challenge 161: Estimating Ο from Random Numbers with Euclid's Algorithm |
2021-03-12 | 4.2: Many Particle Systems (Emitters!) - The Nature of Code |
2021-03-09 | 4.1: Particle System Simulation - The Nature of Code |
2021-03-06 | Coding Train Live! |
2021-03-05 | Guest Conductor: Twirling Tech Goddess |
2021-02-27 | Coding Train Live! |
2021-02-22 | Coding Challenge #160: Spring Forces |
2021-02-20 | Coding Challenge #159: Simple Pendulum Simulation |
2021-02-16 | 3.7: Additive Waves - The Nature of Code |
2021-02-13 | Coding Train Live: Self-Avoiding Walk and Discord bot |
2021-02-12 | 3.6 Graphing Sine Wave - Nature of Code |
2021-02-07 | 3.5 Simple Harmonic Motion - Nature of Code |
2021-02-06 | Coding Train Live! |
2021-02-06 | 3.4 Polar Coordinates - The Nature of Code |
2021-02-02 | 3.3: Angles and Vectors - Nature of Code |
2021-01-29 | 3.2 Angular Motion - Nature of Code |
2021-01-26 | 3.1 Angles and Rotation - Nature of Code |
2021-01-23 | Coding Train Live! |
2021-01-16 | 2021 Choo Choo! |
2021-01-15 | Discord Bots 6: Building a Command Handler |
2021-01-08 | 2021 Choo Choo! |