Skip to content

A Python script that draws any svg file using the associated fourier series and epicycloids

Notifications You must be signed in to change notification settings

PCov3r/Fourier_drawing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Fourier_drawing

A Python script that draw any svg file using the associated fourier series and epicycloids.

Usage

From the terminal use python -m main filename.svg coeffnumber [boolean_show] where:

  • filename.svg is the svg file to draw

  • coeffnumber is the number of fourier coefficients to compute

  • boolean_show to show/hide the circles and points

Dependencies

The program dependencies are numpy, matplotlib, cmath and svgpathtools.

The needed versions can be found and installed from requirements.txt

Example

From the file :


We can get the following result :
Number of coefficients Result
10
50
100

What I plan on adding

  • Possibility to use jpeg or png images.
  • Improving animation speed by removing circles with a small radius which do not add much details

About

A Python script that draws any svg file using the associated fourier series and epicycloids

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages