Skip to content

Picasso's iconic single line drawings analyzed by Fourier Transform.

Notifications You must be signed in to change notification settings

piellardj/picasso-fourier

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

picasso-fourier

Description

The Fourier Transform is a mathematical process that breaks a complex signal into a sum of sines and cosines, which can be represented as rotating circles. The more circles are used, the more precise the approximation is.

This project uses this tool to analyze some of Picasso's single line drawings. I picked sketches mostly from his iconic animals series, as well as his take on the traditional Arlequin character.

You can try to be your own Picasso by drawing on the canvas.

See it live here.

Donate

Screenshot

Details

The curve is decomposed as a sum of segments, each being of fixed length and rotating at a fixed speed. The length and rotation speed of each segment is described by the computed Fourier coefficients.

Screenshot Illustration of the construction process: construction segments (red), rotation of the segments (white circles) and resulting curve (white)

The whole computation is performed on the CPU:

  • Fourier coefficients, performed once at the loading of the curve points
  • points along the approximated curve, performed lazily during the simulation

Not clearing the canvas between each iteration results in cool effects:

Screenshot Base curve

Screenshot Persistent mode with the construction segments displayed

Screenshot Persistent mode with the construction circles displayed