On Fri, 20 Sep 2002 20:51:35 -0400, Glenn McCorkle wrote:

> On Sat, 07 Sep 2002 05:43:31 +0100GMT, Laurie L Proud wrote:

<snip>

>> Glenn, If the following requires serious work please disregard but
>> if the screensaver has only 3 items, can we have 3 diferent colours
>> i.e. RED BLUE YELLOW     or     RED BLUE GREEN

>> Presently Arachne seems to select colo(u)rs at random from a selection
>> with the likelyhood of 2 items the same colour.  It looks odd.
>> actually 2 colours the same 80% of the time.

> That shouldn't be too hard to do.

> I'll let you know when it's done. ;-)

OK, done. :))

We can now choose from:

ScreenSaverColors 0
ScreenSaverColors 1

(and the newly added)
ScreenSaverColors 2

It was this easy.

<snip>

   char barva0[6]={1,3,9,11,7,8};
   char barva1[6]={1,2,3,6,10,14};
   char barva2[3]={1,2,3};          //added this line
   char *barva;
   char *value;

<snip>

   value=configvariable(&ARACHNEcfg,"ScreenSaverColors",NULL);
   if(value)
   {
   if(*value=='1')
    barva=barva1;
   if(*value=='2')         //changed to 'test' for 3 possible values
    barva=barva2;          //instead of just 2
    }
   else
    barva=barva0;

<snip>

This was the original 'test'.

<snip>

   value=configvariable(&ARACHNEcfg,"ScreenSaverColors",NULL);
   if(value && *value=='1')
    barva=barva1;
   else
    barva=barva0;

<snip>

BTW,
I don't read Czech so don't ask me what 'barva' means.

Oh what the heck.<g>
BRB
_______

http://www.slovnik.cz/ecd/input.htm has this to say about 'barva':

barva = colour
barva = color
barva = dye
barva = hue
barva = paint
barva = touch
barva (karty jedne barvy) = suit
barva (na razitka) = ink
barva (syta, kriklava) = technicolor
barva (tiskova) = printing-ink
barva azuritu = bice
barva bordo = grape
barva deloviny = gunmetal grey
barva malachitu = bice
barva na vlasy = hair-dye
barva pleti = flesh-colour


So that's simple enough.

In this context... barva = color <g>
(or if you prefer... colour)


-- 
 Glenn
 http://arachne.cz/
 http://www.delorie.com/listserv/mime/
 http://www.angelfire.com/id/glenndoom/download.htm
 http://www.thispagecannotbedisplayed.com/

Reply via email to