Closed pkulak closed 9 years ago
I merged it by hand and must've done something github doesn't like, but your authorship has been preserved: a697a2ba47879362f3fe70af7a632e4c8336ff82. Anyways, thanks for this contribution!
FYI, there was a subtle bug in there that made the computations wrong. I've noticed it while adding tests to increase coverage.
The problem was that the L,a,b values of go-colorful are around [0,1] while the formulas you used (and are commonly found online) work with values around [0,100] and thus the constats are in the wrong range.
Oh wow! Good catch. Sorry about that!
No worries, thank you for the implementation! Just thought I'd let you know here in case you were still using this somewhere!
perfect, thanks!