Except Microsoft which uses 0-255 !
On 01/07/2022 14:41, Alan Bourke wrote:
Paul
The .NET syntax is very similar:https://dotnetfiddle.net/b2uIkS
However it returns the lightness value in a range of 0 .. 1 so you have to
multiply by 100 to express in a % which seems to be how everyone else doe
Paul
The .NET syntax is very similar: https://dotnetfiddle.net/b2uIkS
However it returns the lightness value in a range of 0 .. 1 so you have to
multiply by 100 to express in a % which seems to be how everyone else does it.
--
Alan Bourke
alanpbourke (at) fastmail (dot) fm
_
==
ProFox List Statistics
June 2022
==
Subscriber Count at End of Month:
ProFox: 300
ProFoxTech: 183
==
Total Posts: 51
(D
You are right Alan so I have implemented conversion routines based on
the following
https://www.rapidtables.com/convert/color/hsl-to-rgb.html
https://www.rapidtables.com/convert/color/rgb-to-hsl.html
I also found this site useful for checking results
http://www.workwithcolor.com/color-converte
I don't think its implementation of these methods is correct Paul, comparing
with what .NET would return.
--
Alan Bourke
alanpbourke (at) fastmail (dot) fm
___
Post Messages to: ProFox@leafe.com
Subscription Maintenance: https://mail.leafe.com/mai
5 matches
Mail list logo