Skip to content

Recreates a hand-drawn image by calculating its complex Fourier Series representation.

License

Notifications You must be signed in to change notification settings

TobyBoyne/fourier-animation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fourier-animation

Recreates a hand-drawn image by calculating its complex Fourier Series representation. Examples can be found in the images folder.

Usage

Run the main.py file, and draw the image in the figure that opens. Once the image has been drawn, close the figure. The next figure shows a comparison between the Fourier approximations, and the hand drawn image. Close this figure to create the drawing animation.

To change the number of coefficients of the Fourier series produced, change the values in the Ns tuple. To add/substract the number of Fourier series produced, add/remove values to/from the Ns tuple.

To not save the figure (this will make the project run faster), pass save_anim=False into the run() function.

Skills

  • Apply skills learnt in lectures to calculate a Fourier series of an arbitrary input
  • Use matplotlib to create static and animated visualisations

Inspiration

Inspired by 3Blue1Brown's video: But what is a Fourier series?

About

Recreates a hand-drawn image by calculating its complex Fourier Series representation.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages