Colorator, Light Pastel    
float loclip (float num, float clipat )
{ num = num + .5- clipat ;
float Result = num * llRound (num);
return Result; }
User defined function
num is number (usually random) between 0 and 1; clipat is clip point. Numbers less than clipat are set to zero.
float randFMTO(float FM, float TO)
{ return llFrand(TO- FM) + FM; }
User defined function  Result is random number ranging  from FM to TO.
default {
   state_entry()
 

{ llSetTimerEvent(120); }

Set timer to trigger event every 120 seconds.

timer()

Event: timer()

{float red = randFMTO (.5, 1 );
float green = randFMTO (.5, 1 );
float blue =randFMTO (.5, 1 );
llSetColor(<(float)red,(float)green,(float)blue >, ALL_SIDES); }

Timer code block: With the range .5 to 1, ranFMTO delivers only lighter colors.  For dark shades, use a range such as .0 to .5.
 
} Close default
Mods for this script  

{float red = loclip((llFrand (1)),.5);
float green = loclip((llFrand (1)),.5);
float blue= loclip((llFrand (1)),.5);
llSetColor(<(float)red,(float)green,(float)blue >, ALL_SIDES); }

For strong colors use this timer code block.  To strengthen the colors more, use. 7 in place of .5. 
 

float green =0
float green =1

Turn a color off with 0, on full with 1.
The Thinkerer 09/13/2008
Copyright (c) D. F. Dansereau & S. H. Evans

Site Map

Where start?

LODScr
Famous fables