Posted By


ZonjaCapalini on 07/21/09

Tagged


Statistics


Viewed 699 times
Favorited by 0 user(s)

Klein bottle generator - "Cylinder" code


/ Published in: Other
Save to your folder(s)



Copy this code and paste it in your HTML
  1. default
  2. {
  3.  
  4. on_rez(integer param)
  5. {
  6. // Extract color coded in parm, set our own color
  7. integer j = param % 100;
  8. if (j == 0) llSetColor(<0.0,1.0,1.0>,ALL_SIDES); // cyan
  9. else if (j == 1) llSetColor(<1.0,1.0,0.0>,ALL_SIDES); // yellow
  10. else if (j == 2) llSetColor(<0.0,1.0,0.0>,ALL_SIDES); // green
  11. else if (j == 3) llSetColor(<1.0,0.0,0.0>,ALL_SIDES); // red
  12. else if (j == 4) llSetColor(<0.0,1.0,0.0>,ALL_SIDES); // green
  13. else if (j == 5) llSetColor(<1.0,1.0,0.0>,ALL_SIDES); // yellow
  14. else if (j == 6) llSetColor(<0.0,1.0,1.0>,ALL_SIDES); // cyan
  15. else if (j == 7) llSetColor(<1.0,0.0,1.0>,ALL_SIDES); // magenta
  16.  
  17. // Alter our size
  18. llSetPrimitiveParams([PRIM_SIZE,<0.01,0.01,(float) param / 100000>]);
  19.  
  20. // We're done -- remove ourselves
  21. llRemoveInventory(llGetScriptName());
  22. }
  23.  
  24. }

URL: http://zonjacapalini.wordpress.com/2009/07/20/2889-working-with-very-large-linksets-in-opensim/

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.