Skip to content

JkutkutArchive/JS-Drawing-SVGs-using-DFT

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

Code to translate a SVG-drawing closed loop and draw it using the Discrete Fourier Transform.

Topics

Resources

Stars

Watchers

Forks