Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Scripting Colors

Ayanna Allen
Registered User
Join date: 3 Jun 2007
Posts: 4
06-20-2007 20:24
I'm trying to change the particle colors in an item, and am absolutely stymied here. I'm shooting for orange (or possibly yellow). Can anyone post the correct three-digit combo for those? Thank you!
DoteDote Edison
Thinks Too Much
Join date: 6 Jun 2004
Posts: 790
06-20-2007 20:38
Here's a color table which shows the vector for many colors:

http://www.lslwiki.net/lslwiki/wakka.php?wakka=color

...and here's a neat little script for getting the color you see on your prim, translated to a vector. Each time the you change the prim's color, the script will chat the color vector.

default {
changed(integer change) {
if (change & CHANGED_COLOR) llOwnerSay("Color Vector = " + (string)llGetColor(0));
}
}
Osgeld Barmy
Registered User
Join date: 22 Mar 2005
Posts: 3,336
06-21-2007 00:09
rez a prim, edit it, goto the textures section, choose the color you want

look at the Red Green Blue values and devide those by 255 for the RGB values in vector/float/lsl format


OR!!

drop this in a prim, when you choose a color in the picker it will automaticly tell you the vector value which you just copy n paste back into your script

From: someone

//<--- Osgelds Handy Dandy Color Converter --->//
default
{
changed(integer change)
{
if (change & CHANGED_COLOR)
{
llOwnerSay((string) llGetColor(ALL_SIDES));
}
}
}
Ayanna Allen
Registered User
Join date: 3 Jun 2007
Posts: 4
06-21-2007 13:24
I love you; you rock; I got my orange to yellow particle fade. :)