Page 1 of 1

mergAnswerColor - hex only? SOLVED

Posted: Wed Jan 17, 2018 5:11 am
by quailcreek
Hi,
I'm coming up to the end of a couple of projects so I started looking more closely at mergAnswerColor. I can get it to work but it will only out-put colors in hex. To set the backgroundColor of say a grc, you need the RGB or the color name. I looked on the forum and found ways to convert RGB to the color name and how to convert color name to RGB but nothing on converting from hex to RGB. Does anybody have a method for doing this? Would be nice if Monte could give use a choice of out-puts... Monte... huh Monte?

Re: mergAnswerColor - hex only?

Posted: Wed Jan 17, 2018 6:14 pm
by jacque
You can use hexadecimal for colors, just be sure to put the hash sign before the hex.

Re: mergAnswerColor - hex only?

Posted: Wed Jan 17, 2018 6:44 pm
by quailcreek
Thank you, Jacqueline. That crossed my mind but I thought it couldn’t be that simple. Duh...

Re: mergAnswerColor - hex only? SOLVED

Posted: Thu Jan 18, 2018 9:51 pm
by quailcreek
Just in case anybody is interested in poking at mergAnswerColor here's a sandbox to get you started.
mergAnswerColor Test.livecode.zip
(2.59 KiB) Downloaded 338 times