HTML Colour Groups
theaford at btinternet.com
Sun May 31 12:10:00 EDT 2020
It seems that LC only supports the use of names that can be found by
put the colorNames function
“Crimson” is not one of those.
How the names of colors included is determined, I do not know.
I just thought (clearly incorrectly) that HTML colors were included.
On another point.
When you use Hex directly as in
set the background color of graphic 1 to #FFC0CB
set tColor to “#FFC0CB”
set the background color of graphic 1 to tColor
Could someone explain how to do hex with a variable
> On 31 May 2020, at 14:50, Rick Harrison via use-livecode <use-livecode at lists.runrev.com> wrote:
> Hi Terry,
> Does it work if you use the Hex Code instead of the name?
> Are you using the LC Server for this?
> If so, what version of LC server are you running?
> Is the code embedded as LC code or is it HTML or CSS?
> Have you tested it in more than one Web-browser?
> Sometimes things don’t work in one but do in another.
> I have had instances of something working correctly
> in Firefox but not in Chrome etc.
> If you can show us the offending line/lines of code
> that would be helpful too.
>> On May 31, 2020, at 5:39 AM, Terence Heaford via use-livecode <use-livecode at lists.runrev.com> wrote:
>> I thought LC supported HTML Colour Names?
>> I have been using the Colour Name Groups found here
>> https://www.w3schools.com/colors/colors_groups.asp <https://www.w3schools.com/colors/colors_groups.asp>
>> and found that some of the colours do not work in LC.
>> For example “Crimson” reports an error in LC.
>> Can someone explain this anomaly please.
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the use-livecode