An open API service indexing awesome lists of open source software.

https://github.com/web-dev-sam/dft-machine

A machine that uses Discrete Fourier Transformations (DFT) to draw anything you like.
https://github.com/web-dev-sam/dft-machine

experiment math p5js simulation

Last synced: 9 months ago
JSON representation

A machine that uses Discrete Fourier Transformations (DFT) to draw anything you like.

Awesome Lists containing this project

README

          





A machine that uses Discrete Fourier Transformations (DFT) to draw anything you like.


 
 

## How it works
The Fourier Transform is a mathematical technique that decomposes a function into its frequencies. The machine takes points (x, y) as an input (by clicking anywhere) and creates a function in polar coordinates, transformed into a function of frequencies using the DFT. Then it creates circles that have these frequencies/radial velocities. Appended to each other, the result becomes an approximate function that goes through all input points. For a more detailed explanation, have a look at [Mathologers](https://www.youtube.com/watch?v=qS4H6PEcCCA) and [3Blue1Browns](https://www.youtube.com/watch?v=r6sGWTCMz2k) videos:

[![Mathologers video](https://img.youtube.com/vi/qS4H6PEcCCA/0.jpg)](https://www.youtube.com/watch?v=qS4H6PEcCCA)
[![3Blue1Browns video](https://img.youtube.com/vi/r6sGWTCMz2k/0.jpg)](https://www.youtube.com/watch?v=r6sGWTCMz2k)

 
 

## Live Demos



 
 

Open Processing: https://www.openprocessing.org/sketch/943646