aboutsummaryrefslogtreecommitdiff
path: root/experiments/draw/sequence
diff options
context:
space:
mode:
authorlonkaars <loek@pipeframe.xyz>2024-05-02 16:58:35 +0200
committerlonkaars <loek@pipeframe.xyz>2024-05-02 16:58:35 +0200
commit1634d546d3e941701fdbab211dfa376f334339f1 (patch)
tree16aaba7f0d0b529fb6793809e1c05b87770c9b87 /experiments/draw/sequence
parent7c402c347b46f908eefefb6a957bf92100061951 (diff)
WIP messy pictochat protocol dissector
Diffstat (limited to 'experiments/draw/sequence')
-rwxr-xr-xexperiments/draw/sequence31
1 files changed, 31 insertions, 0 deletions
diff --git a/experiments/draw/sequence b/experiments/draw/sequence
new file mode 100755
index 0000000..6000fed
--- /dev/null
+++ b/experiments/draw/sequence
@@ -0,0 +1,31 @@
+#!/bin/sh
+cd "$(dirname "$0")"
+. ./lib.sh
+
+pattern='
+10101010
+1100110011001100
+11110000111100001111000011110000
+1111111100000000111111110000000011111111000000001111111100000000
+'
+pattern="$(echo "$pattern" | tr -d '\n')"
+length="$(echo "$pattern" | wc -c)"
+pattern="$(echo "$pattern" | sed 's/./\0 /g')"
+
+msg_clear
+pen
+small
+
+# message top left
+bottom_screen 82 18
+
+for pixel in $pattern ; do
+ # shift mouse 1 pixel right
+ xdotool mousemove_relative 1 0
+
+ # skip 0's in $pattern
+ [ $pixel -ne 1 ] && continue
+
+ tap
+done
+