From 3e86b5b618aec197df2ffe58369bcea6f8428bcb Mon Sep 17 00:00:00 2001 From: epoch Date: Wed, 19 Feb 2020 03:03:34 -0600 Subject: added one of those spinner squares --- share/hackvr/examples/spinners/square.sh | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100755 share/hackvr/examples/spinners/square.sh (limited to 'share/hackvr/examples/spinners/square.sh') diff --git a/share/hackvr/examples/spinners/square.sh b/share/hackvr/examples/spinners/square.sh new file mode 100755 index 0000000..3b733c7 --- /dev/null +++ b/share/hackvr/examples/spinners/square.sh @@ -0,0 +1,19 @@ +#!/usr/bin/env bash +printf "%s move 0 0 -10\n" "$USER" +printf "square addshape 2 4 1 1 0 -1 1 0 -1 -1 0 1 -1 0\n" +inc=5 +end=180 +while true;do + for i in $(seq 1 $inc $end);do + printf "square rotate +%d +0 +0\n" "$inc" + sleep .01 + done + for i in $(seq 1 $inc $end);do + printf "square rotate +0 +%d +0\n" "$inc" + sleep .01 + done + for i in $(seq 1 $inc $end);do + printf "square rotate +0 +0 +%d\n" "$inc" + sleep .01 + done +done -- cgit v1.2.3