« Return to Thread: AW: Know RGB from color index

AW: Know RGB from color index

by etchekov :: Rate this Message:

Reply to Author | View in Thread

I was searching in my files - here is one more way (PLUA 1) to extract the rgb - values



function GetRGB(var)

    local qr, qg, qb

    qr=floor(var/65536)

    qg=floor((var-qr*65536)/256)

    qb=var-qr*65536-qg*256

    return qr,qg,qb

end


very best regards

Emil





----- Ursprüngliche Mail ----
Von: ibelcomputing <ibelcomputing@...>
An: plua@...
Gesendet: Mittwoch, den 6. August 2008, 18:52:47 Uhr
Betreff: [plua] Know RGB from color index

My question is, exactly as title says, is there any way to know the R,
G and B values of a color given its index?


------------------------------------

Yahoo! Groups Links



__________________________________________________
Do You Yahoo!?
Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden Schutz gegen Massenmails.
http://mail.yahoo.com 

 « Return to Thread: AW: Know RGB from color index