A Python script that draw any svg file using the associated fourier series and epicycloids.
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
The program dependencies are numpy
, matplotlib
, cmath
and svgpathtools
.
The needed versions can be found and installed from requirements.txt
We can get the following result :
Number of coefficients | Result |
---|---|
10 | |
50 | |
100 |
- Possibility to use jpeg or png images.
- Improving animation speed by removing circles with a small radius which do not add much details