summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 11 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index a4f8280..9cc99c6 100644
--- a/Makefile
+++ b/Makefile
@@ -23,7 +23,17 @@ kd-forest.png: kd-forest
image: kd-forest.png
+kd-forest.mkv: kd-forest
+ $(RM) kd-forest.mkv
+ $(RM) -r frames
+ mkdir -p frames
+ ./kd-forest -b 20 -s -c Lab -a -o frames
+ ffmpeg -r 60 -i frames/%04d.png -c:v libx264 -preset veryslow -qp 0 kd-forest.mkv
+
+anim: kd-forest.mkv
+
clean:
$(RM) kd-forest
+ $(RM) -r frames
-.PHONY: image clean
+.PHONY: image anim clean