News for hackers. Stuff that matters.
Re:Let’s Draw Together by fctorial on Sunday May 24, 2020 @06:13PM (#23295345)
#!/usr/bin/env zsh

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

Re:Let’s Draw Together by fctorial on Sunday May 24, 2020 @08:10PM (#23296195)