Open rkotov93 opened 3 years ago
Hey @jfairbank, is there any chance it will be merged?
@rkotov93 FYI I've created a fork/rename of Chroma that I intend to maintain and I've fixed this issue with commit https://github.com/evanleck/kodachroma/commit/b7df42998166dddd7df76d04598d87f70540349e
Problem
Seems like currently
Chroma::Color
generates wrong RGB from HEX8. Here is a proof that#eb09b9c4
has to be235, 9, 185
:But
Chroma::Color#rgb
returns9, 185, 196
:Solution:
I have found a six years old issue https://github.com/jfairbank/chroma/issues/6, that was resolved by replacing the order of arguments for
FromHexStringValues#from_hex8
method. I have moved it back and now it returns expected RGB: