My Fourier Epicycles
myfourierepicycles.com
myfourierepicycles.com
It gives an easy way to play with the coefficients and hopefully allows the player to gain some intuitions. For example how some combinations of frequencies lead to rotational symmetry and why negative frequencies are necessary.
It's not very polished, though. I made a mistake while writing the algorithm that checks whether the shape is matching. It causes some false negatives in certain situations. There might also be some issues with dragging the controls on Mac OS.
https://upload.wikimedia.org/wikipedia/en/a/a4/Flag_of_the_U...
One sum of vectors is enough to trace any continuous line.
Here’s a gif of that if the project player doesn’t work for you: https://github.com/kach/gifblocks/blob/master/gallery/fourie...
As you undoubtedly know, there is nothing essential about using sin waves with Fourier stuff... it can work with any shaped curve. A cool modification would be use a combination of the users input to generate a circle instead of the other way around. That is, if I draw a square, a multitude of squares of different sizes and phases, each tracing their contour, will generate the X,Y values for a circle.
Trying to draw lines parallel and close to more than one border generates a lot of nonsense. Try with a square almost as big as the canvas.
Is it necessary to do it for x and y separated? Couldn't you just take x for the real part and y for the imaginary part of the time series and do the Fourier transform on that?
edit: monday morning typos.
Maybe OP can make an example with high frequencies removed?