summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2020-02-19 03:03:34 -0600
committerepoch <epoch@hacking.allowed.org>2020-02-19 03:03:34 -0600
commit3e86b5b618aec197df2ffe58369bcea6f8428bcb (patch)
tree2349d87a87938e5e3186a6a12053a550c4fc49b4
parent9bee4032a9162a0727cdc5041c3cf601702cff56 (diff)
downloadhackvr-3e86b5b618aec197df2ffe58369bcea6f8428bcb.tar.gz
hackvr-3e86b5b618aec197df2ffe58369bcea6f8428bcb.zip
added one of those spinner squares
-rwxr-xr-xshare/hackvr/examples/spinners/square.sh19
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