The issue has been closed
do you think you could explain to me the logic of how you convert values from one model to another? The code seems to abstract some of that logic, and it's a bit hard to tell what's going on. do you use the formulas from this website? --> https://www.easyrgb.com/en/math.php. More specifically, I would like to know how you go from RGB to LAB and vice versa.

Hi @isa3bel - this package has two sister packages, color-convert
and color-string
.
color-convert
is the package that contains all of the color conversion logic :) This package (color
) is just a more human-friendly wrapper around those packages.
Hope that helps! :)
posted by Qix- almost 5 years ago
Thank you @Qix- for the fast response! It seems like that other package is using a formula from https://www.easyrgb.com/en/math.php. Is this the website that you used to form the formulas in color-convert? Thanks again
posted by isa3bel almost 5 years ago
I really couldn't say, that package is pretty old and has been updated quite a lot.
There's a fair chance it's the other way around - they might have gotten their formulas from that package. It's not uncommon for that to be the case :)
The formulas for these models have been known for a while, however. I would imagine they're quite the same.
posted by Qix- almost 5 years ago