translating a color name to RGB triplet

Stephen Barncard stephenREVOLUTION at barncard.com
Fri Sep 8 15:29:41 EDT 2006


somewhere within the bowels of Rev must be a way to convert this directly.

I know you can input colornames to 'Answer Color'

     answer color with "AliceBlue"
     put it into fld "output2"

(it contains 239,247,255)

and of course this works -

       set the backgroundcolor of btn "toadMeat" to "LightYellow"

but when you get the color back from the object

        get colors of btn "toadMeat")
        replace numToChar(11) with return in x
        put it into fld "output2"

you can see "AliceBlue" in line 3 in fld output2.

(I was hoping to see the numbers!!)

hidden table or property?




>KALANGI Vijay BABU <VijayBABU.KALANGI at insead.edu> wrote:
>
>  > Can somebody suggest me a way to "translate a color name to RGB triplet"

-- 
stephen barncard
s a n  f r a n c i s c o
- - -  - - - - - - - - -


More information about the use-livecode mailing list