removed useless _ folders
This commit is contained in:
3
Color_generator/Color_generator.sol
Normal file
3
Color_generator/Color_generator.sol
Normal file
@@ -0,0 +1,3 @@
|
||||
<Solution name="Color_generator">
|
||||
<Project name="Color_generator" path="Color_generator\Color_generator.prj" active="true"/>
|
||||
</Solution>
|
||||
6
Color_generator/Color_generator/Color_generator.prj
Normal file
6
Color_generator/Color_generator/Color_generator.prj
Normal file
@@ -0,0 +1,6 @@
|
||||
<Project name="Color_generator" guid="D6FFFEB5-6C00-1014-B904-200204C60A89">
|
||||
<Object name="Object" guid="D6FFFFB3-6C00-1014-B904-200204C60A89">
|
||||
<Script name="Color_generator_1.lsl" guid="D7001B6E-6C00-1014-B904-200204C60A89">
|
||||
</Script>
|
||||
</Object>
|
||||
</Project>
|
||||
53
Color_generator/Color_generator/Object/Color_generator_1.lsl
Normal file
53
Color_generator/Color_generator/Object/Color_generator_1.lsl
Normal file
@@ -0,0 +1,53 @@
|
||||
// :CATEGORY:Color
|
||||
// :NAME:Color_generator
|
||||
// :AUTHOR:Anonymous
|
||||
// :CREATED:2010-01-10 05:20:56.000
|
||||
// :EDITED:2013-09-18 15:38:50
|
||||
// :ID:194
|
||||
// :NUM:267
|
||||
// :REV:1.0
|
||||
// :WORLD:Second Life
|
||||
// :DESCRIPTION:
|
||||
// Color generator.lsl
|
||||
// :CODE:
|
||||
|
||||
integer toggle = 0; // This is our toggle switch for turning the
|
||||
// script on and off. 0 is off, 1 is on.
|
||||
|
||||
float base_delay = 1.0; // This is the minimum amount of delay
|
||||
// that will happen between color changes.
|
||||
// If you want a consistently longer or
|
||||
// shorter delay, change this value.
|
||||
|
||||
float variable_delay = 1.5; // This is the maximum delay added to
|
||||
// the base_delay. If you want a wider
|
||||
// variation in the delay, then increase
|
||||
// the value. If you want less variance.
|
||||
// then decrease it.
|
||||
|
||||
default
|
||||
{
|
||||
touch_start(integer counter)
|
||||
{
|
||||
toggle *= -1; // Here we multiply negative one, to change its
|
||||
// sign.
|
||||
|
||||
if(toggle < 0) // We test to see if it is less than 0, and if it
|
||||
// is, then we turn on the color changer.
|
||||
{
|
||||
llSetTimerEvent(llFrand(variable_delay) + base_delay);
|
||||
}
|
||||
else
|
||||
{
|
||||
llSetTimerEvent(0);
|
||||
}
|
||||
}
|
||||
|
||||
timer()
|
||||
{
|
||||
llSetColor(<llFrand(1),llFrand(1),llFrand(1)>,ALL_SIDES);
|
||||
llSetTimerEvent(llFrand(variable_delay) + base_delay);
|
||||
}
|
||||
}
|
||||
|
||||
// END //
|
||||
Reference in New Issue
Block a user