#1 2020-05-15 12:11

jpmb76
Member
Registered: 2020-04-30
Posts: 8

HTML and HEX are swapped?

I think there is an error within a program.
I believe HTML and HEX values are swapped.
screenshot

Offline

#2 2020-05-16 08:25

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,022

Re: HTML and HEX are swapped?

jpmb76 wrote:

I believe HTML and HEX values are swapped.

No, they are actually fine. But perhaps the labels could be improved to avoid this ambiguity.

The "HTML" format uses a hex notation but in a machine independent byte order, as used in HTML and CSS color specification. The "Hex" format is really a binary format in hex, it uses machine dependant byte order. The latter format is suited for pasting into various coding environments, e.g. C/C++, Pascal, etc.

Offline

#3 2020-05-16 08:46

jpmb76
Member
Registered: 2020-04-30
Posts: 8

Re: HTML and HEX are swapped?

Thanks for the info.
If you are going to change anything you could also change HSL order from what is now (HLS) to HSL.

Offline

#4 2020-05-18 09:09

den4b
Administrator
From: den4b.com
Registered: 2006-04-06
Posts: 3,022

Re: HTML and HEX are swapped?

jpmb76 wrote:

If you are going to change anything you could also change HSL order from what is now (HLS) to HSL.

Thanks for pointing this out. It appears that both conventions are used in the wild, but the latter (HSL) is defiantly more prominent.

It will be changed in the next version.

Offline

#5 2020-05-18 09:23

jpmb76
Member
Registered: 2020-04-30
Posts: 8

Re: HTML and HEX are swapped?

To be honest I don't recall to ever come across HLS mode

Offline

Board footer

Powered by FluxBB