Skip to content

laurgao/fourier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fourier series drawing. Check it out!! laurgao.github.io/fourier


One day, I was bored. So I decided to learn about the Fourier transform.

I used Adobe Illustrator to trace a continuous outline of the original photo, converted it to svg, used Python to sample the x and y coordinates of ~400 evenly-spaced points along the svg path, and then plugged those points into a discrete fourier transform with the y coordinate as the imaginary part. Main Fourier logic is in sketch.js.

Stuff that helped me:

Potential future improvements:

  • Don't use linear sampling
  • Speed controls
  • Controls for # sample points

Releases

No releases published

Packages

No packages published

Languages