Is there an algorithm for converting a RGB byte array to an HSL float array and back again?
I have tried the one found here but it seems to have bugs.
Is there an algorithm for converting a RGB byte array to an HSL float array and back again?
I have tried the one found here but it seems to have bugs.
Copyright © 2021 Jogjafile Inc.
I use the following class which converts from HSL to RGB and vice-versa. You can construct a
ColorRGBinstance from aColor, or simply cast one. It exposesH,S,Lproperties also. I found it on the internet. Apologies to the original author, I cannot find a reference: