rgp(0,33,49) = #.....?
I assume that you meant rgB, correct?
rgb(0,33,49) = #002131
& the way one does it (manually) is to take each number & use divide by 16 & then mod 16 to get teh 2 chars for that representation
i.e.- 49/16 = 3 (no remainder) 49 mod 16 = 1 (just the remainder)
so the hex for 49 = 31
& if the values = [10,11,12,13,14,15], you substitute [A,B,C,D,E,F]
so 255 becomes FF 255/16 = 15 = F 255 mod 16 = 15 = F
(255 = 15*16 + 15)
btw - After doing it by hand (arithmetic), I verified it by setting the member("textmember").bgColor = rgb(0,33,49) & then looked in the PI's list view which does the translating for us. :)
hth -Buzz
I see a call for it the other way 'round...
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
[To remove yourself from this list, or to change to digest mode, go to http://www.penworks.com/lingo-l.cgi To post messages to the list, email [EMAIL PROTECTED] (Problems, email [EMAIL PROTECTED]). Lingo-L is for learning and helping with programming Lingo. Thanks!]
