From 2259500ee50ddb17c2e4d6768973dd233d011c29 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Sun, 22 May 2016 18:52:09 +0200 Subject: Implement script to automatically generate a GIF of the Voronoi-diagrams based on the Minkowski metric for p in [1, 2] --- unit_circle.sh | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'unit_circle.sh') diff --git a/unit_circle.sh b/unit_circle.sh index 40c834f..bab9ec6 100644 --- a/unit_circle.sh +++ b/unit_circle.sh @@ -1,13 +1,15 @@ #! /usr/bin/fish -mkdir unit ^/dev/null -cd unit +mkdir unit_gif ^/dev/null +cd unit_gif rm *.ppm *.gif ^/dev/null ../unit_circle for f in unit_circle_* - convert $f -annotate +75+120 (echo "p =" (echo $f | grep -o "[0-9].[0-9]\{2\}" | head -n 1)) $f + convert $f -annotate +75+120 ( + echo "p =" (echo $f | grep -o "[0-9].[0-9]\{2\}" | head -n 1) + ) $f end convert -delay 8 -loop 0 *.ppm circle.gif -- cgit v1.2.3