#!/bin/bash
#
#				 tappeto.sh
#
#		 http://freaknet.org/alpt/src/misc/tappeto.sh
#
# --
#  
# Optical illusion: is the string shifting to the left or to the right?
# 
# Tip: If you can't notice the illusion, try to concentrate on an extremity of
#      the string, than after 10 seconds watch the other extremity.
#
# -- 
#
# Tue Aug 29 22:01:08 CEST 2006 - Mazara Del Vallo
#
# AlpT (@freaknet.org)
#

if [ ! -f /tmp/.zigurrat_tappeto ] || [ "$1" == "help" -o "$1" == "-h" ]
then
	printf "\tYou will see a shifting string.\n"
	printf "\tCan you understant to what side is it shifting?\n"
	printf "\tTo the left or to the right?\n"
	echo ""
	
	printf "\t\t\t10\r"; sleep 1
	printf "\t\t\t 9\r"; sleep 1
	printf "\t\t\t 8\r"; sleep 1
	printf "\t\t\t 7\r"; sleep 1
	printf "\t\t\t 6\r"; sleep 1
	printf "\t\t\t 5\r"; sleep 1
	printf "\t\t\t 4\r"; sleep 1
	printf "\t\t\t 3\r"; sleep 1
	printf "\t\t\t 2\r"; sleep 1
	printf "\t\t\t 1\r"; sleep 1

	touch /tmp/.zigurrat_tappeto
fi

clear
while [ 0 ] ; do 
	printf "	=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\r"
	sleep 0.2
	printf "	-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=\r"
	sleep 0.2;
done
