changing object colour references from hex to rgb

Mark Schonewille m.schonewille at economy-x-talk.com
Tue Sep 6 03:51:38 EDT 2011


Hi Terry,

There might be a way, something like mouseColor for example, but it is easier to convert them: baseConvert(char 2 to 3 of myHex,16,10) & comma & baseConvert(char 4 to 5 of myHex,16,10) & comma & baseConvert(char 6 to 7 of myHex,16,10).

--
Best regards,

Mark Schonewille

Economy-x-Talk Consulting and Software Engineering
Homepage: http://economy-x-talk.com
Twitter: http://twitter.com/xtalkprogrammer
KvK: 50277553

Send me a friend request on Facebook if you like https://www.facebook.com/marksch

On 6 sep 2011, at 09:38, Terry Judd wrote:

> OK, I want to set the background of some objects to a hex value - easy enough - but then at a later stage I want to compare an RGB colour value with them to see if there is a match. However, if I set the colour using a hex value the queried value for the object remains as a hex value. Is there any way I can force the queried value to report as an RGB triplet, or do I need to programmatically convert them?
> 
> Terry...





More information about the use-livecode mailing list