Join us in Outworldz at www.outworldz.com:9000 or follow us:

Search dozens of selected web sites for OpenSim and LSL script

New! Script Meta-Search will search thousands of scripts here and at other sites for LSL or Opensim scripts.
Loading

Want to add a script or a project? Upload it and a half million people will see it and your name here this year.

Home   Show All
Category: Contributor: Creator
Rainbow L94arainbowroy  

L94arainbowroy

L9.4a-rainbow-roy.lsl

Category: Rainbow
By : Dana Moore
Created: 2010-01-10 Edited: 2010-01-10
Worlds: Second Life

the Zip file

Download all files for L94arainbowroy
Contents are in zip format, with .LSL (text) source code and LSLEdit (text + Solution) formats.
Get file # 1. L94arainbowroy_1.lsl
1
2 // Copyright (c) 2008, Scripting Your World
3 // All rights reserved.
4 //
5 // Scripting Your World
6 // By Dana Moore, Michael Thome, and Dr. Karen Zita Haigh
7 // http://syw.fabulo.us
8 // http://www.amazon.com/Scripting-Your-World-Official-Second/dp/0470339837/
9 //
10 // You are permitted to use, share, and adapt this code under the
11 // terms of the Creative Commons Public License described in full
12 // at http://creativecommons.org/licenses/by/3.0/legalcode.
13 // That means you must keep the credits, do nothing to damage our
14 // reputation, and do not suggest that we endorse you or your work.
15
16 integer NUM_PARTICLES_PER_RADIAN = 50;
17 float RAINBOW_ARC = PI_BY_TWO;
18
19 startRainbowROY()
20 {
21 integer numParticles = (integer)(RAINBOW_ARC *
22 NUM_PARTICLES_PER_RADIAN);
23 float age = 10.0; // you can also use these in the call
24 float burstRate = 0.2; // to llParticleSystem()
25 float total = (age * numParticles) / burstRate;
26 llOwnerSay("This emitter manages "+(string)total +" particles");
27
28 // Based on Listing B.1. Unchanged values removed to save trees
31 PSYS_PART_INTERP_SCALE_MASK | // let it grow
33 //Appearance
34 PSYS_PART_START_SCALE, <2.0, 0.3, 0.0>, // <1,1,0>,
35 PSYS_PART_END_SCALE, <2.5, 0.3, 0.0>, // <1,1,0>,
36 PSYS_PART_START_COLOR, <1.0, 1.0, 0.0>, // <1,1,1>,
37 PSYS_PART_END_COLOR, <1.0, 0.2, 0.0>, // <1,1,1>,
38 PSYS_PART_START_ALPHA, 0.8, // 1.00,
39 PSYS_PART_END_ALPHA, 0.8, // 1.00,
40 //Flow
41 PSYS_PART_MAX_AGE, age, // 10.00,
42 PSYS_SRC_BURST_RATE, burstRate, // 0.10,
43 PSYS_SRC_BURST_PART_COUNT, numParticles, // 1,
44
45 //Placement
46 PSYS_SRC_PATTERN, PSYS_SRC_PATTERN_ANGLE, // DROP,
47 PSYS_SRC_BURST_RADIUS, 15.0, // 0.00,
48 PSYS_SRC_ANGLE_BEGIN, 0.0, // 0.00,
49 PSYS_SRC_ANGLE_END, RAINBOW_ARC, // 0.00,
50 //Movement
51 PSYS_SRC_BURST_SPEED_MIN, 0.1, // 1.00,
52 PSYS_SRC_BURST_SPEED_MAX, 0.1 // 1.00,
53 ]);
54 }
55
56 default {
57 state_entry() {
59 startRainbowROY();
60 }
61 on_rez(integer _n) {
63 }
64 }
65 // END //

Back to the Best Free Tools in Second Life and OpenSim.