Start the programm here: https://tlkaufmann.github.io/drawingWithFourier
User created drawings are recreated using circles of constant rotation utilizing Fourier series. This project was created using the p5.js library.
See Wikipedia on Fourier Series.
Start drawing by pressing left mouse button. Start/stop the animation using Space
.
The maximum degree of the Fourier series as well as the playback speed (through the timestep dt) can be adjusted using the sliders.
sketch.js
: This is the actual code for the projectfourierTrafo.js
: Code for creating the Fourier seriesindex.html
: Main HTML pagestyle.css
: CSS-stylesheet for styling the slidersp5.js
: Source file for p5.jsp5.dom.js
: Extra source file necessary for the sliders