diff options
Diffstat (limited to 'unit_circle.sh')
-rw-r--r-- | unit_circle.sh | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/unit_circle.sh b/unit_circle.sh new file mode 100644 index 0000000..40c834f --- /dev/null +++ b/unit_circle.sh @@ -0,0 +1,17 @@ +#! /usr/bin/fish + +mkdir unit ^/dev/null +cd unit +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 +end + +convert -delay 8 -loop 0 *.ppm circle.gif +convert -reverse circle.gif circle_reversed.gif +convert circle.gif circle_reversed.gif circle_cycle.gif + +cd .. |