--- In
plua@..., Emil Tchekov <etchekov@...> wrote:
Thank you very much for your help, from technical to comprehensive
info - even a plua 1 solution, what i've looking for! Thanks again.
And in the function i see "return"... Is useful to know that... So i
can assign the function like any other? I've programmed for some years
in plua 1, since plua 1.0, and i didn't know about the return
clause... Hoh!
>
> 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
>
________________
> Do You Yahoo!?
> Sie sind Spam leid? Yahoo! Mail verfügt über einen herausragenden
Schutz gegen Massenmails.
>
http://mail.yahoo.com>