view pentagon.sh @ 34:cc1adef5674e default tip

GPL and headers
author Josef "Jeff" Sipek <jeffpc@optonline.net>
date Sun, 04 Dec 2005 22:48:18 -0500
parents ffd493239c92
children
line wrap: on
line source

./render&
sleep 1

PIPE="/tmp/3de.in"

PT1="1 0 0 1 0 0"
PT2="1 1 0 0.31 -0.95 0"
PT3="0 1 0 -0.81 -0.59 0"
PT4="0 1 1 -0.81 0.59 0"
PT5="0 0 1 0.31 0.95 0"

INC="0.01745"
OMEGA="0"

echo "TRANSCAM 0 0 -1.0" > $PIPE
for x in `seq 3600`; do
	echo "CLEAR" > $PIPE
	echo "POLY " `echo -e "0 0 $OMEGA\n$PT1\n$PT2\n$PT3\n$PT4\n$PT5" | ./rotate | ./transform` > $PIPE
	echo "TEXT 0 0 0 320 400 -0.5 The Pentagon!" > $PIPE
	DATE=`date "+%Y-%m-%d %H:%M:%S" --utc`
	echo "TEXT 1 1 1 0 800 -0.5 $DATE UTC" > $PIPE
	echo "FLUSH" > $PIPE
	OMEGA=`echo "$OMEGA+$INC" | bc`
	sleep 0.01
done