summaryrefslogtreecommitdiff
path: root/examples/draw
diff options
context:
space:
mode:
authorepoch <epoch@hacking.allowed.org>2018-12-16 19:28:39 -0600
committerepoch <epoch@hacking.allowed.org>2018-12-16 19:28:39 -0600
commitf479b438e6119e83c95b19aaeccd61a8e5eded27 (patch)
tree726a3916d9128f6c970f49431ef8b27140e49747 /examples/draw
parent13dd5a6d313a2086647751286ca8315a12c804f1 (diff)
downloadhackvr-f479b438e6119e83c95b19aaeccd61a8e5eded27.tar.gz
hackvr-f479b438e6119e83c95b19aaeccd61a8e5eded27.zip
fuck if I know. lots of shit. moved files.
Diffstat (limited to 'examples/draw')
-rwxr-xr-xexamples/draw/draw.sh36
-rwxr-xr-xexamples/draw/run3
2 files changed, 0 insertions, 39 deletions
diff --git a/examples/draw/draw.sh b/examples/draw/draw.sh
deleted file mode 100755
index 65c7558..0000000
--- a/examples/draw/draw.sh
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/bin/bash
-echo "$USER move 0 0 -100"
-
-for y in $(seq 1 1 24);do
- for x in $(seq 1 1 24);do
- echo ${x}_${y} addshape 2 4 $x $y 0 $[x] $[y+1] 0 $[x+1] $[y+1] 0 $[x+1] $[y] 0
- done
-done
-
-### color pallete
-### 0-8 are ansi colors. +16 to make them not affected by "lighting"
-for c in $(seq 0 8);do
- echo color_${c} addshape $[c+16] 4 -2 ${c+2} 0 -1 ${c+2} 0 -1 $[c+3] 0 -2 $[c+3] 0
-done
-
-echo "derp" >&2
-
-color=3
-echo color_${color} addshape $[color+16] 4 -2 0 0 -2 1 0 -1 1 0 -1 0 0
-
-while read source command target;do
- printf "target: %s command: %s\n" "$target" "$command" >&2
- if [ "$command" = "action" ];then
- if echo "$target" | grep "^color_" 2>&1 >/dev/null;then
- color=$(echo $target | cut -d_ -f2)
- echo deletegroup $target
- echo color_${color}_current addshape $[color+16] 4 -2 -2 0 -2 -1 0 -1 -1 0 -1 -2 0
- else
- echo "derp" >&2
- x=$(echo $target | cut -d_ -f1)
- y=$(echo $target | cut -d_ -f2)
- echo $target deletegroup $target
- echo $target addshape $[color + 16] 4 $x $y 0 $x $[y+1] 0 $[x+1] $[y+1] 0 $[x+1] $y 0 | tee /dev/stderr
- fi
- fi
-done
diff --git a/examples/draw/run b/examples/draw/run
deleted file mode 100755
index f14b415..0000000
--- a/examples/draw/run
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-mknod p p
-cat p | tee /dev/stderr | ./draw.sh | hackvr $USER > p