colour your tooltool applications!!

Dr. Coleman coleman at di.uregina.ca
Thu Jun 6 00:17:00 AEST 1991


  If you have a tooltool application, then get out your
colour crayons! All of the buttons in the main gadget
window as well as those in the dialog gadget windows
can be made colourful. I have not tried the raster images
for menu items as opposed to their button images.
The instructions and programming tools that you will
need as well as a trivial example are included in the
following shar file.
  There is one aspect of the process that could be greatly
improved. A version of ppmtorast that takes both a ppm 
file and a file that specifies a colormap in the form
of rgb-triplets such as appears in color.h and checks
to determine whether or not the triplets that occur in
the ppm file also occur in the colormap file (producing
an error message if not) and finally forces the raster
file to have the prescribed colormap would be an
important addition. An answer to this problem would
be most welcome.
  Let us hope that this kind of tool will be made available
within openwindows/xwindows/NeWS.
  ONE MORE THING: I find that it is a difficult thing to 
determine which pairs of triplets make good background-
foreground pairs when it comes to text on background.
If anyone has good suggestions for suitable pairs, please
send them to me vial email.

Enjoy!

Robert Coleman
Mathematics
University of Regina
Regina, Sask. S4S 0A2
email:coleman at di.uregina.ca

____________________________________________________________________________

#!/bin/sh
# This is a shell archive, meaning:
# 1. Remove everything above the #!/bin/sh line.
# 2. Save the resulting text in a file.
# 3. Execute the file with /bin/sh (not csh) to create the files:
#	alpha.pbm
#	alpha.pre
#	alpha.ras.uu
#	alpha1.pre
#	alpha1.ras.uu
#	alpha2.pre
#	alpha2.ras.uu
#	color.h
#	colortooltool
#	pbmtool.tt
#	pbmtoppm
#	test.tt
#	tooltool.h
#	windows.c
# This archive created: Mon May 27 10:29:10 1991
export PATH; PATH=/bin:$PATH
echo cshar: extracting "'alpha.pbm'" '(939 characters)'
if test -f 'alpha.pbm'
then
	echo cshar: over-writing existing file "'alpha.pbm'"
fi
cat << \SHAR_EOF > 'alpha.pbm'
P1
30 30
000000000000000000000000000000
000000000000000000000000000000
000000000000000000000000000000
000000000000000000000000000000
000000000000000000000000000000
000000000000000000000000000000
000000000000000000000000000000
000000000000000000000000000000
000000000000000000000000000000
000000000000000000000000000000
000000000000011100000000000000
000000000000100110010000000000
000000000001100011010000000000
000000000011000011100000000000
000000000011000011100000000000
000000000011000011000000000000
000000000011000011000000000000
000000000011000111000000000000
000000000001111001100000000000
000000000000000000000000000000
000000000000000000000000000000
000000000000000000000000000000
000000000000000000000000000000
000000000000000000000000000000
000000000000000000000000000000
000000000000000000000000000000
000000000000000000000000000000
000000000000000000000000000000
000000000000000000000000000000
000000000000000000000000000000
SHAR_EOF
if test 939 -ne "`wc -c 'alpha.pbm'`"
then
	echo cshar: error transmitting "'alpha.pbm'" '(should have been 939 characters)'
fi
echo cshar: extracting "'alpha.pre'" '(11923 characters)'
if test -f 'alpha.pre'
then
	echo cshar: over-writing existing file "'alpha.pre'"
fi
cat << \SHAR_EOF > 'alpha.pre'
P3
30 30
255
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  

000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  

000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  

000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  

000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  

000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  

000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  

000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  

000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  

000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  

000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  111 111 111  111 111 111  
111 111 111  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  

000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  111 111 111  000 000 000  000 000 000  
111 111 111  111 111 111  000 000 000  000 000 000  111 111 111  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  

000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  111 111 111  111 111 111  000 000 000  000 000 000  
000 000 000  111 111 111  111 111 111  000 000 000  111 111 111  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  

000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
111 111 111  111 111 111  000 000 000  000 000 000  000 000 000  
000 000 000  111 111 111  111 111 111  111 111 111  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  

000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
111 111 111  111 111 111  000 000 000  000 000 000  000 000 000  
000 000 000  111 111 111  111 111 111  111 111 111  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  

000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
111 111 111  111 111 111  000 000 000  000 000 000  000 000 000  
000 000 000  111 111 111  111 111 111  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  

000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
111 111 111  111 111 111  000 000 000  000 000 000  000 000 000  
000 000 000  111 111 111  111 111 111  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  

000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
111 111 111  111 111 111  000 000 000  000 000 000  000 000 000  
111 111 111  111 111 111  111 111 111  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  

000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  111 111 111  111 111 111  111 111 111  111 111 111  
000 000 000  000 000 000  111 111 111  111 111 111  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  

000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  

000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  

000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  

000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  

000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  

000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  

000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  

000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  

000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  

000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  

000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  
000 000 000  000 000 000  000 000 000  000 000 000  000 000 000  

SHAR_EOF
if test 11923 -ne "`wc -c 'alpha.pre'`"
then
	echo cshar: error transmitting "'alpha.pre'" '(should have been 11923 characters)'
fi
echo cshar: extracting "'alpha.ras.uu'" '(126 characters)'
if test -f 'alpha.ras.uu'
then
	echo cshar: over-writing existing file "'alpha.ras.uu'"
fi
cat << \SHAR_EOF > 'alpha.ras.uu'
begin 770 alpha.ras
M6:9JE0   !X    >     0   "@    "          " *  '@ ( "9   !C0
;   PX   ,.   ##    PP   ,<   !Y@@"P 

end
SHAR_EOF
if test 126 -ne "`wc -c 'alpha.ras.uu'`"
then
	echo cshar: error transmitting "'alpha.ras.uu'" '(should have been 126 characters)'
fi
echo cshar: extracting "'alpha1.pre'" '(11923 characters)'
if test -f 'alpha1.pre'
then
	echo cshar: over-writing existing file "'alpha1.pre'"
fi
cat << \SHAR_EOF > 'alpha1.pre'
P3
30 30
255
170 000 190  000 255 000  190 100 050  100 255 210  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  

170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  

170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  

170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  

170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  

170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  

170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  

170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  

170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  

170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  

170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  000 255 000  000 255 000  
000 255 000  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  

170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  000 255 000  170 000 190  170 000 190  
000 255 000  000 255 000  170 000 190  170 000 190  000 255 000  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  

170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  000 255 000  000 255 000  170 000 190  170 000 190  
170 000 190  000 255 000  000 255 000  170 000 190  000 255 000  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  

170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
000 255 000  000 255 000  170 000 190  170 000 190  170 000 190  
170 000 190  000 255 000  000 255 000  000 255 000  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  

170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
000 255 000  000 255 000  170 000 190  170 000 190  170 000 190  
170 000 190  000 255 000  000 255 000  000 255 000  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  

170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
000 255 000  000 255 000  170 000 190  170 000 190  170 000 190  
170 000 190  000 255 000  000 255 000  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  

170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
000 255 000  000 255 000  170 000 190  170 000 190  170 000 190  
170 000 190  000 255 000  000 255 000  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  

170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
000 255 000  000 255 000  170 000 190  170 000 190  170 000 190  
000 255 000  000 255 000  000 255 000  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  

170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  000 255 000  000 255 000  000 255 000  000 255 000  
170 000 190  170 000 190  000 255 000  000 255 000  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  

170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  

170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  

170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  

170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  

170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  

170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  

170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  

170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  

170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  

170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  

170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  
170 000 190  170 000 190  170 000 190  170 000 190  170 000 190  

SHAR_EOF
if test 11923 -ne "`wc -c 'alpha1.pre'`"
then
	echo cshar: error transmitting "'alpha1.pre'" '(should have been 11923 characters)'
fi
echo cshar: extracting "'alpha1.ras.uu'" '(1277 characters)'
if test -f 'alpha1.ras.uu'
then
	echo cshar: over-writing existing file "'alpha1.ras.uu'"
fi
cat << \SHAR_EOF > 'alpha1.ras.uu'
begin 660 alpha1.ras
M6:9JE0   !X    >    "    &D    "     0   P#_ &2^J@          
M                                                            
M                                                            
M                                                            
M                                                            
M                                                            
M                        _P#_9 #_                            
M                                                            
M                                                            
M                                                            
M                                                            
M                                                            
M     /\ TC*^                                                
M                                                            
M                                                            
M                                                            
M                                                            
M                                               $!0,"@/\$@#0$
M@ (%@!D$!00$!04$! 6 % 0%!8 "! 4%! 6 $P0%!8 #!( "!8 4! 4%@ ,$
M@ (%@!0$!06  P0%!8 5! 4%@ ,$!06 %00%!8 "!( "!8 6!( #!00$!06 
%_P2 5 0$

end
SHAR_EOF
if test 1277 -ne "`wc -c 'alpha1.ras.uu'`"
then
	echo cshar: error transmitting "'alpha1.ras.uu'" '(should have been 1277 characters)'
fi
echo cshar: extracting "'alpha2.pre'" '(11923 characters)'
if test -f 'alpha2.pre'
then
	echo cshar: over-writing existing file "'alpha2.pre'"
fi
cat << \SHAR_EOF > 'alpha2.pre'
P3
30 30
255
170 000 190  000 255 000  190 100 050  100 255 210  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  

190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  

190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  

190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  

190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  

190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  

190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  

190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  

190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  

190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  

190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  100 255 210  100 255 210  
100 255 210  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  

190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  100 255 210  190 100 050  190 100 050  
100 255 210  100 255 210  190 100 050  190 100 050  100 255 210  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  

190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  100 255 210  100 255 210  190 100 050  190 100 050  
190 100 050  100 255 210  100 255 210  190 100 050  100 255 210  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  

190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
100 255 210  100 255 210  190 100 050  190 100 050  190 100 050  
190 100 050  100 255 210  100 255 210  100 255 210  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  

190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
100 255 210  100 255 210  190 100 050  190 100 050  190 100 050  
190 100 050  100 255 210  100 255 210  100 255 210  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  

190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
100 255 210  100 255 210  190 100 050  190 100 050  190 100 050  
190 100 050  100 255 210  100 255 210  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  

190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
100 255 210  100 255 210  190 100 050  190 100 050  190 100 050  
190 100 050  100 255 210  100 255 210  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  

190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
100 255 210  100 255 210  190 100 050  190 100 050  190 100 050  
100 255 210  100 255 210  100 255 210  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  

190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  100 255 210  100 255 210  100 255 210  100 255 210  
190 100 050  190 100 050  100 255 210  100 255 210  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  

190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  

190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  

190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  

190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  

190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  

190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  

190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  

190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  

190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  

190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  

190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  
190 100 050  190 100 050  190 100 050  190 100 050  190 100 050  

SHAR_EOF
if test 11923 -ne "`wc -c 'alpha2.pre'`"
then
	echo cshar: error transmitting "'alpha2.pre'" '(should have been 11923 characters)'
fi
echo cshar: extracting "'alpha2.ras.uu'" '(1277 characters)'
if test -f 'alpha2.ras.uu'
then
	echo cshar: over-writing existing file "'alpha2.ras.uu'"
fi
cat << \SHAR_EOF > 'alpha2.ras.uu'
begin 660 alpha2.ras
M6:9JE0   !X    >    "    &D    "     0   P#_ &2^J@          
M                                                            
M                                                            
M                                                            
M                                                            
M                                                            
M                        _P#_9 #_                            
M                                                            
M                                                            
M                                                            
M                                                            
M                                                            
M     /\ TC*^                                                
M                                                            
M                                                            
M                                                            
M                                                            
M                                               $!0,"@/\#@#0#
M@ ("@!D# @,# @(# P* % ," H " P(" P* $P," H # X " H 4 P("@ ,#
M@ ("@!0# @*  P," H 5 P("@ ,# @* %0," H " X " H 6 X # @,# @* 
%_P. 5 ,#

end
SHAR_EOF
if test 1277 -ne "`wc -c 'alpha2.ras.uu'`"
then
	echo cshar: error transmitting "'alpha2.ras.uu'" '(should have been 1277 characters)'
fi
echo cshar: extracting "'color.h'" '(1133 characters)'
if test -f 'color.h'
then
	echo cshar: over-writing existing file "'color.h'"
fi
cat << \SHAR_EOF > 'color.h'
/********************************************************/
/*                                                      */
/*      This is a sample colormap to use with the       */
/*      coloured version of Chuck Musciano's            */
/*      tooltool ( version 2.1c ). It is advisable      */
/*      reserve positions [0] and [1] for the triplet   */
/*      255 255 255 and to reserve the last two         */
/*      positions for the triplet 000 000 000.          */
/*      Tooltool must be recompiled each time it is     */
/*      modified.                                       */
/*                                                      */
/********************************************************/

        red[0] = 255; green[0] = 255; blue[0] = 255;
        red[1] = 255; green[1] = 255; blue[1] = 255;
        red[2] = 100; green[2] = 255; blue[2] = 210;
        red[3] = 190; green[3] = 100; blue[3] = 050;
        red[4] = 170; green[4] = 000; blue[4] = 190;
        red[5] = 000; green[5] = 255; blue[5] = 000;
        red[6] = 000; green[6] = 000; blue[6] = 000;
        red[7] = 000; green[7] = 000; blue[7] = 000;
SHAR_EOF
if test 1133 -ne "`wc -c 'color.h'`"
then
	echo cshar: error transmitting "'color.h'" '(should have been 1133 characters)'
fi
echo cshar: extracting "'colortooltool'" '(3707 characters)'
if test -f 'colortooltool'
then
	echo cshar: over-writing existing file "'colortooltool'"
fi
cat << \SHAR_EOF > 'colortooltool'

          HOW TO COLOR YOUR TOOLTOOL APPLICATIONS

                    Robert Alan Coleman

                    University of Regina
                    Regina, Saskatchewan
                    Canada, S4S 0S2

                 email:coleman at di.uregina.ca


  You will need the utilities or their equivalents mentioned
below, all of which are readily available from file servers
on the network.
  1) Some means of producing suitable black and white labels
on the screen. I use LaTeX and then display them with dvitps.
  2) A block of such labels can be dumped from the screen into
a rasterfile using dumpregion.
  3) This raster file is then loaded into touchup2.5 and the
cut and paste utility of this tool is used to produce the small
raster images button.ras that will become the button image.
  4) One then uses the PBM tools to produce .pbm files;
specifically: pbmtorast button.ras > button.pbm.
  5) Next the .pbm files are cleaned up mostly by adding or
deleting rows and/or columns of either 0's or 1's. The enclosed
pbmtool.tt, a pbm editor for vi, may help in this process.
  6) The enclosed sed file pbmtoppm may be used to convert
the file button.pbm into a precursor button.pre to the final
file button.ppm. Of course a large number of files can be
transformed all at once.
  7) Each button.pre is converted into the appropriate button.ppm
by replacing the strings 000 000 000 and 111 111 111 by the
desired color codes which can be obtained from a variety of
tools such as palette, touchup and ice.
  8) The colored raster file button.ras is produced from:
        ppmtorast button.ppm > button.ras
  9) The steps 7) and 8) do not quite work because it is
NECESSARY that ALL of the raster images MUST have the same
colormap. It is for this reason that the enclosed files
alpha1.ppm and alpha2.ppm have extra color triplets on the
first rows of their image list. It would make things much
simpler if ppmtorast were modified so that it inputs a colormap
file such as the enclosed color.h in addition to the file
button.ppm that is to be converted, prints an error message
if the ppm file contains colors not in color.h and forces the
output rasterfile to have the specified colormap. We are working
on this problem, but if someone with more experience with the
PBM toolkit can do it faster, please do so.
  10) The extra row of colors that result from the procedure
used in 9) can be removed somewhat tediously by editing the
color raster images using touchup.
  11) The appropriate order for the entries in color.h can
be determined by doing a 
        show button.ras
and then bringing up palette and selecting the appropriate
colormap.
  12) Black and white images may be used also. Just use the
raster images produced by pbmtorast.
  13) The modifications to tooltool itself are relatively
simple. The size of the colormap must be defined in tooltool.h.
Most of the changes occur in windows.c --- four places where
gadget windows can be created and in the one place where dialog
windows can be dreated. All modifications are flagged by the
string *Added for color*. In addition a suitable color.h file
must be supplied. Tooltool must be recompiled whenever the
colormap is changed.
  14) WARNING: The enclosed raster images were created on a
sparcstation 1+ running OS4.1. I have transferred via kermit
binary mode such a file to a SUN3 system running OS3.5 and
it did not show properly!! Moreover, I then transferred the
file back via kermit binary mode and it did show properly!!
I conclude that something has changed (OS??). Anyway, if you
have trouble with bringing up test.tt try recreating the files
on your system using pbmtorast and ppmtorast respectively.
  15) ENJOY!
SHAR_EOF
if test 3707 -ne "`wc -c 'colortooltool'`"
then
	echo cshar: error transmitting "'colortooltool'" '(should have been 3707 characters)'
fi
echo cshar: extracting "'pbmtool.tt'" '(15128 characters)'
if test -f 'pbmtool.tt'
then
	echo cshar: over-writing existing file "'pbmtool.tt'"
fi
cat << \SHAR_EOF > 'pbmtool.tt'
/***************************************************************

                         pbmtool
            Copyright 1991 Robert Alan Coleman
             University of Regina, Saskatchewan
                 coleman at di.uregina.ca

   The purpose of this tooltool specification file is to assist
   the manipulation of raster files using PBM commands. It is intended
   for use in conjunction with Chuck Musciano's tooltool program
   (version 2.1). It is distributed under the terms of the GNU
   GENERAL PUBLIC LICENSE a copy of which follows.




More information about the Comp.sys.sun mailing list