mergAnswerColor - hex only? SOLVED

Anything beyond the basics in using the LiveCode language. Share your handlers, functions and magic here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
quailcreek
Posts: 746
Joined: Sun Feb 04, 2007 11:01 pm
Location: McKenna, WA

mergAnswerColor - hex only? SOLVED

Post by quailcreek » Wed Jan 17, 2018 5:11 am

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?
Last edited by quailcreek on Wed Jan 17, 2018 7:37 pm, edited 1 time in total.
Tom
MacBook Pro OS Mojave 10.14

jacque
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 7228
Joined: Sat Apr 08, 2006 8:31 pm
Location: Minneapolis MN
Contact:

Re: mergAnswerColor - hex only?

Post by jacque » Wed Jan 17, 2018 6:14 pm

You can use hexadecimal for colors, just be sure to put the hash sign before the hex.
Jacqueline Landman Gay | jacque at hyperactivesw dot com
HyperActive Software | http://www.hyperactivesw.com

quailcreek
Posts: 746
Joined: Sun Feb 04, 2007 11:01 pm
Location: McKenna, WA

Re: mergAnswerColor - hex only?

Post by quailcreek » Wed Jan 17, 2018 6:44 pm

Thank you, Jacqueline. That crossed my mind but I thought it couldn’t be that simple. Duh...
Tom
MacBook Pro OS Mojave 10.14

quailcreek
Posts: 746
Joined: Sun Feb 04, 2007 11:01 pm
Location: McKenna, WA

Re: mergAnswerColor - hex only? SOLVED

Post by quailcreek » Thu Jan 18, 2018 9:51 pm

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 260 times
Tom
MacBook Pro OS Mojave 10.14

Post Reply

Return to “Talking LiveCode”