Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Starting with particle script...

TheBest Page
*Someone Has To Be . . .*
Join date: 25 Nov 2004
Posts: 38
01-17-2005 23:47
Hey I'm working on my particle script and when it comes to the color I just play around with it and I wanted to know if there was like any Vector Colorwheel things I can look at to know what numbers do what colors.
_____________________
__________________________________
--TheBest--
--Page--
*Someone Has to be ;)*

__________________________________
Tread Whiplash
Crazy Crafter
Join date: 25 Dec 2004
Posts: 291
Color Picker...
01-18-2005 00:48
I use the built-in color-picker tools of either Paint Shop Pro or Photoshop...

But if you don't have either of these, this little Windows program works great:

http://www.softforall.com/Utilities/System/Little_RGB_Color_Picker09140305.htm

For Mac or Linux, you're on your own - there are some decent online Java-based ones out there; but most only display the HTML color-code equivalent; which is in Hexadecimal (and I'm sure many of you out there don't want the hassle of converting those values).

To get RGB values into an appropriate LSL color value, divide each number by 255; and put the result into the appropriate spot in a VECTOR. The first value is the Red channel, second value is Green, and third value in the vector is the Blue channel. All values should be FLOAT types (i.e. make sure to put ".0" at the end of any whole numbers); and should be between 0 and 1.0.

So, for example, this is solid red (RGB "255,0,0";):
vector redColor = <1.0,0,0>;

This is a bright Purple (RGB "255,0,255";):
vector purpleColor = <1.0,0,1.0>;

And this is a uniform medium gray (roughly RGB "128,128,128";):
vector grayColor = <0.5,0.5,0.5>

Hope this helps!

Take care,

--Noel "HB" Wade
(Tread Whiplash)
Kurt Zidane
Just Human
Join date: 1 Apr 2004
Posts: 636
01-18-2005 12:40
This script will report the color of a primtive every time the primtive's color is changed. Meaning you can chose colors by editing the primtive, and changing it's color. Note this script assumes that all side of the prmitive is the same color.

CODE
default
{
changed ( integer change )
{
if ( ( change & CHANGED_COLOR ) == CHANGED_COLOR )
{
llInstantMessage ( llGetOwner ( ), "Color: " + (string) llGetColor( ALL_SIDES ) );
}
}
}