daily pastebin goal
50%
SHARE
TWEET

Untitled

a guest Mar 14th, 2018 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. float dR;
  2. vector farbe = <0.5, 0.5, 0.5>;
  3. float G = 0.5;
  4. float B = 0.5;
  5.  
  6. default
  7. {
  8.     state_entry()
  9.     {
  10.       //farbe = <0.5, 0.5, 0.5>;  
  11.      
  12.     }
  13.  
  14.     touch_start(integer total_number)
  15.     {
  16.      
  17.         vector farbe = llGetColor(ALL_SIDES);
  18.         llOwnerSay("Ist-Farbe: "+(string)farbe.x);
  19.         float R = llFrand(1);
  20.         llOwnerSay("Soll-Farbe: "+(string)R);
  21.         //float G = llFrand(1);
  22.         //float B = llFrand(1);
  23.         if(R > farbe.x)
  24.         {
  25.             dR = (R - farbe.x)*0.1;
  26.             llOwnerSay("Inkrement: "+(string)dR);
  27.         }
  28.         else if(R < farbe.x)
  29.         {
  30.             dR = (farbe.x - R)*(-0.1);
  31.             llOwnerSay("Inkrement: "+(string)dR);
  32.         }
  33.         integer a = 0;
  34.         integer b = 10;
  35.         for(a = 1; a <= b; ++a)
  36.         {  
  37.         llSetColor(<R,B,G>, ALL_SIDES);
  38.         llSleep(0.1);
  39.         R = R +dR;
  40.         //llOwnerSay((string)R);
  41.        
  42.         }
  43.    
  44.     }
  45. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top