Re: HTML Colour Groups

2020-05-31 Thread J. Landman Gay via use-livecode
Note there's a bug in the property inspector when using hex colors. It 
works and the color is applied to the object, but it doesn't show up in the 
property inspector's color squares.

--
Jacqueline Landman Gay | jac...@hyperactivesw.com
HyperActive Software | http://www.hyperactivesw.com
On May 31, 2020 11:44:49 AM Terence Heaford via use-livecode 
 wrote:


I realise I used set in my post but will have used put in the script as you 
cannot use set and apply the script.


Don’t know why it didn’t work originally, sorry for bothering you.

All the best

Terry


On 31 May 2020, at 17:38, Terence Heaford via use-livecode 
 wrote:


Apologies, works now.

Don’t what I did incorrectly to make it not work.

Thanks

Terry

On 31 May 2020, at 17:25, Tore Nilsen via use-livecode 
 wrote:


put "#FFC0CB" into tColor

set the backgroundcolor of graphic 1 to tColor


___
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


Re: HTML Colour Groups

2020-05-31 Thread Paul Hibbert via use-livecode
Hi Terence,

I’m not sure where these originate from, although I suspect they are from an 
earlier HTML version than is displayed on w3schools.

After a quick comparison, the missing colours appear to be;

Aqua
Crimson
Fuchsia
Indigo
Lime
Olive
RebeccaPurple
Silver
Teal

It probably wouldn’t be too difficult to catch these and substitute the Hex 
codes. It also wouldn’t take too much work to build your own custom list if you 
needed it, there's a really comprehensive list of colour names on Wikipedia.

It maybe worth a bug report to get the colorNames updated, I wouldn’t expect it 
to be too high a priority, but it should be an easy fix so you never know.

Regards

Paul

> On May 31, 2020, at 02:39, Terence Heaford via use-livecode 
>  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 
> 
> 
> 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


Re: HTML Colour Groups

2020-05-31 Thread Terence Heaford via use-livecode
I realise I used set in my post but will have used put in the script as you 
cannot use set and apply the script.

Don’t know why it didn’t work originally, sorry for bothering you.

All the best

Terry


> On 31 May 2020, at 17:38, Terence Heaford via use-livecode 
>  wrote:
> 
> Apologies, works now.
> 
> Don’t what I did incorrectly to make it not work.
> 
> Thanks
> 
> Terry
> 
>> On 31 May 2020, at 17:25, Tore Nilsen via use-livecode 
>>  wrote:
>> 
>> put "#FFC0CB" into tColor
>> 
>> set the backgroundcolor of graphic 1 to tColor
> 
> ___
> 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


Re: HTML Colour Groups

2020-05-31 Thread Terence Heaford via use-livecode
Apologies, works now.

Don’t what I did incorrectly to make it not work.

Thanks

Terry

> On 31 May 2020, at 17:25, Tore Nilsen via use-livecode 
>  wrote:
> 
> put "#FFC0CB" into tColor
> 
> set the backgroundcolor of graphic 1 to tColor

___
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


Re: HTML Colour Groups

2020-05-31 Thread Tore Nilsen via use-livecode
You try to sign a value to tColor with the command set. The right command is 
put, as in this example, this works on my end:
put "#FFC0CB" into tColor

set the backgroundcolor of graphic 1 to tColor


Best regards 
Tore Nilsen

 
> 31. mai 2020 kl. 18:13 skrev Terence Heaford via use-livecode 
> :
> 
> Our posts just crossed in the post
> 
> Can you answer my question about using hex in a variable when setting an 
> objects colour.
> 
> Thanks
> 
> Terry 
> 
>> On 31 May 2020, at 17:06, Mark Wieder via use-livecode 
>>  wrote:
>> 
>> available colors.
> 
> ___
> 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


Re: HTML Colour Groups

2020-05-31 Thread Terence Heaford via use-livecode
Our posts just crossed in the post

Can you answer my question about using hex in a variable when setting an 
objects colour.

Thanks

Terry 

> On 31 May 2020, at 17:06, Mark Wieder via use-livecode 
>  wrote:
> 
>  available colors.

___
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


Re: HTML Colour Groups

2020-05-31 Thread Terence Heaford via use-livecode
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 
>  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 
>>  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 
>> 
>> 
>> 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


Re: HTML Colour Groups

2020-05-31 Thread Mark Wieder via use-livecode

On 5/31/20 2:39 AM, Terence Heaford via use-livecode 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 


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.


"the colornames" will give you a sorted list of the available colors.

The colors are the standardized X11 color names from the X.org source code.
https://gitlab.freedesktop.org/xorg/app/rgb/raw/master/rgb.txt

https://en.wikipedia.org/wiki/X11_color_names

--
 Mark Wieder
 ahsoftw...@gmail.com

___
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


Re: HTML Colour Groups

2020-05-31 Thread Rick Harrison via use-livecode
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 
>  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 
> 
> 
> 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


HTML Colour Groups

2020-05-31 Thread Terence Heaford via use-livecode
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 


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