diff options
| -rw-r--r-- | README.md | 11 | ||||
| -rw-r--r-- | example.jl | 8 | ||||
| -rw-r--r-- | jerma.gif | bin | 0 -> 740998 bytes |
3 files changed, 18 insertions, 1 deletions
@@ -1,2 +1,11 @@ # fourier -Fourier series animations from svg paths +Fourier series animations from svg paths with Julia. + +When generating the svg files, the following must be true: +* Relative positions are enforced (no upper case markers) +* All segments of the path are bezier curves (no corners) +* The path to draw must be the only path in the file + +This is easily accomplished in a program such as Inkscape. + +
\ No newline at end of file diff --git a/example.jl b/example.jl new file mode 100644 index 0000000..3dd01df --- /dev/null +++ b/example.jl @@ -0,0 +1,8 @@ +cd(@__DIR__) +include("fourier.jl") +include("bezier.jl") +include("animation.jl") + +curve = createCurve("graphics/jerma.svg") +C = calculateCoefficients(curve, 250) +createVideo(C, "jerma.gif", 400; width=250, n_drawing=2000, fps=30)
\ No newline at end of file diff --git a/jerma.gif b/jerma.gif Binary files differnew file mode 100644 index 0000000..3ae47ba --- /dev/null +++ b/jerma.gif |