summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2014-05-17 13:43:08 -0400
committerTavian Barnes <tavianator@tavianator.com>2014-05-17 15:05:49 -0400
commit914c9ebd7c401edc3e56bd5834e4a6c16ab3cda6 (patch)
tree5144d26a200f8b7874a3622013c84ed550475d9a /Makefile
parent1687c00b1642d1e2fe3fbfe4eedf93123e1d6804 (diff)
downloadkd-forest-914c9ebd7c401edc3e56bd5834e4a6c16ab3cda6.tar.xz
Add an option to generate an animation.
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