Fourier Painter

Draw a closed shape and press Start.

Interested in how this is made? Here is a short video.