Coding Challenge
The Coding Train The Coding Train
1.68M subscribers
47,226 views
0

 Published On Feb 1, 2019

In this coding challenge, I implement the Discrete Fourier Transform algorithm in JavaScript and render a drawing using epicycles derived from the transform. Code: https://thecodingtrain.com/challenges...

p5.js Web Editor Sketches:
šŸ•¹ļø Fourier Transform: https://editor.p5js.org/codingtrain/s...
šŸ•¹ļø Fourier Transform - user-drawn path: https://editor.p5js.org/codingtrain/s...
šŸ•¹ļø Fourier Transform - complex numbers: https://editor.p5js.org/codingtrain/s...
šŸ•¹ļø Fourier Transform - user-drawn path with complex numbers: https://editor.p5js.org/codingtrain/s...

Other Parts of this Challenge:
šŸ“ŗ Part 1 - Drawing with Fourier Transform and Epicycles : Ā Ā Ā ā€¢Ā CodingĀ ChallengeĀ #130.1:Ā DrawingĀ with...Ā Ā 
šŸ“ŗ Part 2 - User Drawn Path: Ā Ā Ā ā€¢Ā CodingĀ ChallengeĀ #130:Ā FourierĀ Transf...Ā Ā 

šŸŽ„ Previous video: Ā Ā Ā ā€¢Ā CodingĀ ChallengeĀ #129:Ā KochĀ FractalĀ S...Ā Ā 
šŸŽ„ Next video: Ā Ā Ā ā€¢Ā CodingĀ ChallengeĀ #131:Ā BouncingĀ DVDĀ LogoĀ Ā 
šŸŽ„ All videos: Ā Ā Ā ā€¢Ā CodingĀ ChallengesĀ Ā 

References:
šŸš‚ Coding Train Logo: Ā Ā /Ā 1079437780466520065Ā Ā 
šŸ’¾ p5.FFT: https://p5js.org/reference/#/p5.FFT
šŸ’¾ FFT on Algorithm Archive: https://www.algorithm-archive.org/con...
šŸ—„ Discrete Fourier transform on Wikipedia: https://en.wikipedia.org/wiki/Discret...
šŸ—„ Complex Number on Wikipedia: https://en.wikipedia.org/wiki/Complex...

Videos:
šŸŽ„ But what is the Fourier Transform? A visual introduction: Ā Ā Ā ā€¢Ā ButĀ whatĀ isĀ theĀ FourierĀ Transform?Ā Ā A...Ā Ā 
šŸŽ„ Fourier Analysis For The Rest Of Us: Ā Ā Ā ā€¢Ā FourierĀ AnalysisĀ ForĀ TheĀ RestĀ OfĀ UsĀ Ā 
šŸŽ„ Epicycles, complex Fourier series and Homer Simpson's orbit: Ā Ā Ā ā€¢Ā Epicycles,Ā complexĀ FourierĀ seriesĀ and...Ā Ā 
šŸ”“ Code Train Live 166: Ā Ā Ā ā€¢Ā CodingĀ TrainĀ LiveĀ 166.1:Ā FinishĀ UpĀ Fo...Ā Ā 

Related Coding Challenges:
šŸš‚ #125 Fourier Series: Ā Ā Ā ā€¢Ā CodingĀ ChallengeĀ 125:Ā FourierĀ SeriesĀ Ā 

Timestamps:
0:00 Fourier Transform and Epicycles Part 3 - Complex Numbers
4:44 Complex numbers
6:06 Let's Code!
8:00 Create a Complex number class
13:37 Use "FOIL" to multiply complex numbers
17:13 Write an add function to add the real components / imaginary components together
22:02 Add a user-drawn path
24:27 Conclusion and suggestions for variations

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

šŸš‚ Website: http://thecodingtrain.com/
šŸ‘¾ Share Your Creation! https://thecodingtrain.com/guides/pas...
šŸš© Suggest Topics: https://github.com/CodingTrain/Sugges...
šŸ’” GitHub: https://github.com/CodingTrain
šŸ’¬ Discord: https://thecodingtrain.com/discord
šŸ’– Membership: http://youtube.com/thecodingtrain/join
šŸ›’ Store: https://standard.tv/codingtrain
šŸ–‹ļø Twitter: Ā Ā /Ā thecodingtrainĀ Ā 
šŸ“ø Instagram: Ā Ā /Ā the.coding.trainĀ Ā 

šŸŽ„ Coding Challenges: Ā Ā Ā ā€¢Ā CodingĀ ChallengesĀ Ā 
šŸŽ„ Intro to Programming: Ā Ā Ā ā€¢Ā StartĀ learningĀ here!Ā Ā 

šŸ”— 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-o...

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

#fouriertransformsquarewave #discretefouriertransform #epicyclesdrawing #javascript #p5js

show more

Share/Embed