In this coding challenge, I visualize a Fourier series for a square wave in JavaScript with p5.js. Code: https://thecodingtrain.com/challenges/125-fourier-series
πΉοΈ p5.js Web Editor Sketch: https://editor.p5js.org/codingtrain/sketches/SJ02W1OgV
π₯ Previous video: https://youtu.be/mhjuuHl6qHM?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ Next video: https://youtu.be/-OL_sw2MiYw?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
π₯ All videos: https://www.youtube.com/playlist?list=PLRqwX-V7Uu6ZiZxtDDRCi6uhfTH4FilpH
References:
π Fourier Series: https://en.wikipedia.org/wiki/Fourier_series
π Purrier Series (Meow) and Making Images Speak: http://bilimneguzellan.net/purrier-series-meow-and-making-images-speak/
π An Interactive Guide To The Fourier Transform by Better Explained: https://betterexplained.com/articles/an-interactive-guide-to-the-fourier-transform/
Videos:
π₯ What is a Fourier Series?: https://youtu.be/ds0cmAV-Yek
π₯ But what is the Fourier Transform? A visual introduction: https://youtu.be/spUNpyF58BY
π Polar Coordinates: https://www.youtube.com/watch?v=O5wjXoFrau4
π΄ Coding Train Live 163: https://youtu.be/pKyU92cza0Y?t=2390s
Related Coding Challenges:
π #61 Fractal Spirograph: https://youtu.be/0dwJ-bkJwDI
π #130 Drawing with Fourier Transform and Epicycles: https://youtu.be/MY4luNgGfms
Timestamps:
00:00 Welcome! Some resources on the Fourier Series
02:44 Explain! What is a Fourier Series?
07:00 Code! Create a dot spinning around a circle!
11:41 Code! Draw the wave path of the dot!
14:41 Oops! Invert the order of the wave!
16:16 Code! Add multiple circle waves!
23:50 Code! Draw the Fourier series!
25:30 Code! Add slider for number of circles!
27:39 Suggestions
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
π 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
#fourier #maths #javascript #p5js