Welcome to the Second Life Forums Archive

These forums are CLOSED. Please visit the new forums HERE

Looking for Vector Color Combos

Jessica Shatner
Registered User
Join date: 5 Sep 2005
Posts: 2
10-05-2005 18:45
Hello all, new to scripting and working on a project that is using particles. Was wondering if there was a place that had the vector color code combonations so I wouldn't have to play with them so much to get the color I'm looking for. Thank in you in advance for any replies.


Jessica
Solar Ixtab
Seawolf Marine
Join date: 30 Dec 2004
Posts: 94
10-05-2005 18:59
To convert colors from the color picker into vector format, divide each value by 255.
_____________________
Despite our best efforts, something unexpected has gone wrong.
Jessica Shatner
Registered User
Join date: 5 Sep 2005
Posts: 2
10-05-2005 19:01
Awesome, that works great. Thank you!

Jessica
Alondria LeFay
Registered User
Join date: 2 May 2003
Posts: 725
10-06-2005 06:04
Or have something that converts from a normal web HEX code to LSL 0 - 1 colors and download one the numerous web color lists.
Jillian Callahan
Rotary-winged Neko Girl
Join date: 24 Jun 2004
Posts: 3,766
10-06-2005 06:56
Fast and easy: plonk this into a sphere prim, set its texture to "blank" and change its color with the picker to what you like.

CODE
default
{
state_entry()
{
llSetColor(<1,1,1>, 0);
}

on_rez(integer n)
{
llResetScript();
}

changed(integer c)
{
if ( c & CHANGED_COLOR )
{
llSetText("My color: " + (string)llGetColor(0), llGetColor(0), 1.0);
}
}
}
_____________________