diff options
| author | Josh Ott <joshott16@gmail.com> | 2022-05-16 23:50:43 -0400 |
|---|---|---|
| committer | Josh Ott <joshott16@gmail.com> | 2022-05-16 23:50:43 -0400 |
| commit | d673f11be621544e02501fd9f38718a40183590d (patch) | |
| tree | 5241faa790d4df57f04f073511053d10213a2e8f | |
| parent | 56fa8b8a06a317704d3199e3ed18ede01ed254c4 (diff) | |
| download | fourier-d673f11be621544e02501fd9f38718a40183590d.tar.gz fourier-d673f11be621544e02501fd9f38718a40183590d.zip | |
Wrote README and added example
| -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 |