|
-
Mar 18th, 2001, 10:27 AM
#1
Thread Starter
Lively Member
Hi ppl!
Could you tell me how to convert an RGB value to and HSL value?
Thanks in advance!
-
Mar 18th, 2001, 10:48 AM
#2
Good Ol' Platypus
L = R+G+B/3
S = 1 - (1/L)*Min(R,G,B)
H = cos^-1( (.5*(R-G) + (R-B) ) / (((R-G)^2 + (R-G)(G-B))^.5) )
(I stole it off of some1 else's site0
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Mar 18th, 2001, 08:36 PM
#3
Thread Starter
Lively Member
I'm sorry but thats far from correct!
Fisrt of all theree must be a more accurate function for the L, cause in most cases it misses big time, S and H are incorrect cause theres something missing!
Hope to hear from any of you guys who can help me out!
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|