It seems that LC only supports the use of names that can be found by put the colorNames function
and “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 works but…. set tColor to “#FFC0CB” set the background color of graphic 1 to tColor does not. Could someone explain how to do hex with a variable Thanks Terry > On 31 May 2020, at 14:50, Rick Harrison via use-livecode > <use-livecode@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. > > Rick > > > > >> On May 31, 2020, at 5:39 AM, Terence Heaford via use-livecode >> <use-livecode@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. >> >> >> >> Thanks >> >> Terry >> _______________________________________________ >> use-livecode mailing list >> use-livecode@lists.runrev.com >> Please visit this url to subscribe, unsubscribe and manage your subscription >> preferences: >> http://lists.runrev.com/mailman/listinfo/use-livecode > > > _______________________________________________ > use-livecode mailing list > use-livecode@lists.runrev.com > Please visit this url to subscribe, unsubscribe and manage your subscription > preferences: > http://lists.runrev.com/mailman/listinfo/use-livecode _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode