Skip to content

Visualization of the complex number fourier decomposition of a 2D SVG path

License

Notifications You must be signed in to change notification settings

pabloqb2000/js-fourier_visualization

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js-fourier_visualization

This is a proyect on visualizing fourier series I built using p5.js.

URL

This proyect is hosted by github pages at this link.

Algorithm

The proyect works by calculating the starting conditions of n complex numbers.
Those complex numbers do 0, 1, 2, ... full rotation every ten seconds (clockwise and counterclockwise).
This numbers are added and the result of the adition is a point in the final path, as time goes on the path is fully drawn.
The initial condition of the complex numbers is calcualated with and integral (wich is aproximated numerically).
For more information on Fourier series visit 3b1b video

Options

  • Circles: number of complex number to use in the aproximation
  • Speed: speed factor to apply to the rotation of this numbers
  • Zoom: scale factor to apply to the whole drawing
  • Circles: whether to draw the rotating circles
  • Follow: whether the camera should follow the last point drawn in the path
  • SVG: name of the drawing to approximate

Screenshot

References

To find more information about the awesome library used for this proyect visit: https://p5js.org/
For more information on Fourier series visit 3b1b video
Links to the authors of the svg files:

Other proyects

Checkout my other proyects at Click math

About

Visualization of the complex number fourier decomposition of a 2D SVG path

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published