Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Let’s Draw Together.
dir=0
up() { xdotool mouseup 1 }
down() { xdotool mousedown 1 }
right() { dir=$(expr $dir + $1) }
left() { dir=$(expr $dir - $1) }
walk() { for i in {1..$1}; do xdotool mousemove_relative --sync --polar $dir 1 done }
square() { down for i in {1..4}; do walk 20 right 90 done up }
block () { down for i in {1..10}; do walk 200 right 90 walk 1 right 90 walk 200 left 90 walk 1 left 90 done up }
circle () {
}
block
# go crazy
https://gist.github.com/fctorial/4cef5d564d84662baacfebaed7c...
dir=0
up() { xdotool mouseup 1 }
down() { xdotool mousedown 1 }
right() { dir=$(expr $dir + $1) }
left() { dir=$(expr $dir - $1) }
walk() { for i in {1..$1}; do xdotool mousemove_relative --sync --polar $dir 1 done }
square() { down for i in {1..4}; do walk 20 right 90 done up }
block () { down for i in {1..10}; do walk 200 right 90 walk 1 right 90 walk 200 left 90 walk 1 left 90 done up }
circle () {
}
block
# go crazy