diff options
Diffstat (limited to 'share/hackvr/examples/spinners')
-rwxr-xr-x | share/hackvr/examples/spinners/square.sh | 19 |
1 files changed, 19 insertions, 0 deletions
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 |