User Tools

Site Tools


user:bh011695:triangle.sh
triangle.sh
#!/bin/bash
#
x=200
y=600
xwit -root -warp $x $y
while [ "$y" -gt 300 ]; do
	xwit -root -warp $x $y
	let x=$x+1
	let y=$y-1
done
while [ "$y" -lt 600 ]; do
	xwit -root -warp $x $y
	let x=$x+1
	let y=$y+1
done
while [ "$x" -gt 200 ]; do
	xwit -root -warp $x $y
	let x=$x-1
done
while [ "$y" -lt 900 ]; do
	xwit -root -warp $x $y
	let x=$x+1
	let y=$y+1
done
while [ "$y" -gt 600 ]; do
	xwit -root -warp $x $y
	let x=$x+1
	let y=$y-1
done
while [ "$x" -gt 200 ]; do
	xwit -root -warp $x $y
	let x=$x-1
done
user/bh011695/triangle.sh.txt · Last modified: 2010/02/11 01:49 by bh011695