aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md11
-rw-r--r--example.jl8
-rw-r--r--jerma.gifbin0 -> 740998 bytes
3 files changed, 18 insertions, 1 deletions
diff --git a/README.md b/README.md
index 84d4b86..3541b3b 100644
--- a/README.md
+++ b/README.md
@@ -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.
+
+![Example gif](jerma.gif) \ 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
new file mode 100644
index 0000000..3ae47ba
--- /dev/null
+++ b/jerma.gif
Binary files differ