Skip to content

Latest commit

 

History

History
22 lines (11 loc) · 1 KB

File metadata and controls

22 lines (11 loc) · 1 KB

Drawing SVGs using DFT:

This code enable us to visualize a given SVG file using the DFT (Discrete Fourier Transform)

train example

How it works:

This code makes use of diferent functions:

When a file is selected, it is evaluated. If it is a valid SVG, the path(s) used to make the figure will be transformed to a collection of points. This array will be them transformed to a array of objects with the data of the application of the Discrete Fourier Transform. Once all is calculated, a function represents the objects as epiCycles while the object is drawn on the screen.

Special thanks:

Code based on The Coding Train code

This code has used Mika-I's code as a reference to transform a svg to a array of points.