Skip to content

tlkaufmann/drawingWithFourier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Drawing user-made drawing with a 2D Fourier series

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.

Example

Example GIF

Functionality

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.

Files

  • sketch.js: This is the actual code for the project
  • fourierTrafo.js: Code for creating the Fourier series
  • index.html: Main HTML page
  • style.css: CSS-stylesheet for styling the sliders
  • p5.js: Source file for p5.js
  • p5.dom.js: Extra source file necessary for the sliders

About

Recreate user drawings using 2D Fourier series (created with p5.js)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages