• All submissions to this site are governed by Second Life Project Contribution Agreement. By submitting patches and other information using this site, you acknowledge that you have read, understood, and agreed to those terms.
MAINTENANCE ANNOUNCEMENT - JIRA will undergo maintenance starting 1:00am PDT through 3:00am on Saturday 2010.03.20. Please do not enter issues during this time as the system maybe restarted.
Issue Details (XML | Word | Printable)

Key: SVC-1600
Type: New Feature New Feature
Status: Open Open
Priority: Normal Normal
Assignee: Unassigned
Reporter: Rita Cummings
Votes: 5
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
2. Second Life Service - SVC

Add HSL/RGB color spaces conversion functions to LSL

Created: 29/Apr/07 11:02 PM   Updated: 08/Jan/10 09:37 PM
Component/s: Scripts
Affects Version/s: None
Fix Version/s: None

Time Tracking:
Not Specified

Issue Links:
Relates
 


 Description  « Hide
vector HSL2RGB(vector hsl);
vector RGB2HSL(vector rgb);

or in any other way you may like.



 All   Comments   Work Log   Change History      Sort Order: Ascending order - Click to sort in descending order
theGenius Indigo added a comment - 17/Nov/09 10:08 PM
Why do you need this as LL function when you can simply define your own function to do this?

Adeon Writer added a comment - 18/Nov/09 06:42 AM
@theGenius because it's quite a lengthy operation to need to add to every script that uses it.

Here it is in C#, could be retyped in LSL rather easily:
http://www.geekymonkey.com/Programming/CSharp/RGB2HSL_HSL2RGB.htm


Reynard Baroque added a comment - 08/Jan/10 09:37 PM
There's freebie functions available for this in the LSL Portal Script Library. Just FYI.