eyes

follow the bouncing Grelb
by Ron Hitchens
1996

History 01-Nov-2000: Allocation checks
04-Sep-1997: Added interactive frobbing with mouse (copied from julia.c)
10-May-1997: Compatible with xscreensaver
18-Mar-1996: Changes for new hook calling conventions. Keep per-screen
state information. Remove global accesses.
21-Feb-1996: Recoded to keep an off-screen image for each pair of eyes,
and to only paint the changed parts to the screen.
Allow the Grelb to enter from either side.
18-Feb-1996: Got the code into mostly working condition.
15-Feb-1996: Had a brainwave, started hacking the xeyes code.

Put random rotations and horizontal shifts in.
At first try make the shifts random with a weighting scheme favouring
shifts towards the most empty region.