Sunview colors, which do you use/like?
Harry Langenbacher
harry at neuron6.jpl.nasa.gov
Thu Jan 17 03:21:39 AEST 1991
I like to use random colors, originally from "Hank Grebe's contribution to
SUG88 software collection", and hacked on by me.
#include <stdio.h>
#include <time.h>
main ( )
{
register int x , Br , Bg , Bb ;
srandom(time(0));
do
{
Br=random()&240;if(Br>160)Br=160;
Bg=random()&120;
Bb=random()&240;if(Bb>208)Bb=208;
x=31*Br+35*Bg+22*Bb;
}
while((x>8000)||(x<1111));
printf("-Wg -Wf %d %d %d -Wb %d %d %d",
(255-Br)|232,(255-Bg)|232,(255-Bb)|232,Br,Bg,Bb);
}
and use it like this:
textedit `randomcolors`&
cmdtool `randomcolors` &
Works for xview too !
.openwin-menu: "Calculator" exec $OPENWINHOME/bin/xview/calctool `randomcolors`
Fool around with any of the integers (color quantizing masks, max-colors,
max-brightnesses, min-brightnesses, color brightness evaluation weights,
foreground brightening bits) to get different sets of colors.
Harry Langenbacher 818-354-9513 harry%neuron6 at jpl-mil.jpl.nasa.gov
Neuroprocessing & Analog Computing Devices
JPL, M/S 302-231, 4800 Oak Grove Dr, Pasadena CA 91109
More information about the Comp.sys.sun
mailing list