RGB to HSB (or HSL)
Hello,
I need to compare one color with array of other colors to get the closet color from the array.
the color I have is in CMYK numbers.
I was comparing the cmyk and found the picked one giving me the totally different color.
And it seems i need to use either HSL (HSB) or LAB color format to get the same color in different brightness or saturation.
Can someone help me on this?
Current coding is based on javascript and comparing the CMYK numbers.
Could anyone revise this or let me know how to convert the CMYK color to LAB or HSB(HSL) color?
"getCols" is the function that comparing the color.
Files can be found from "Dropbox - color comparing"
To test, open "1B trimmed_rev2.ai" and run "PMStoDT using HSB.jsx" and select "DTcolor-NAME.csv" and then select "DTcolor-CMYK.csv".
Thank you.
