Random Color Text

Date 2008/4/1 8:13:38 | Topic: Colors

Floating text that changes colors randomly.

string text "Here is my Floating Text!";

default 
{
    
state_entry() 
    {
        
llSetTimerEvent(2.0); // every 2 seconds
        
llSetText(text, <1,1,1>, 1.0);
    }

    
timer() 
    {
        
vector newcolor = <llFrand(1.0),llFrand(1.0),llFrand(1.0)>;
        
llSetText(textnewcolor1.0);
    }
}




This script comes from Alicia Stella Design - Best Tip Jars in Second Life
http://www.aliciastella.com

The URL for this script is:
http://www.aliciastella.com/modules/AMS/article.php?storyid=15