-
grim
So i'm trying to implement XEP 0392 using the C hsluv bindings, but I'm getting different values when I try the test data. not sure how to proceed here.. The hue's are right, but the rgb coming from the library disagrees with test data in the xep
-
Link Mauve
grim, IIRC you could change the brightness and saturation before converting to RGB, maybe check you’re using the same ones as the spec?
-
grim
hah yeah that's the problem.. should the lightness be at 100 for this?
-
Link Mauve
I’m surprised the test vectors don’t include this information, once you figure it out I’ll submit a fix to the spec I guess.
-
grim
yeah it's not 100..
-
grim
maybe 50 50 ?
-
grim
saturation 100, lightness 50
-
Link Mauve
Ta.
-
Link Mauve
grim, https://github.com/xsf/xeps/pull/1465
-
grim
Link Mauve: thanks for the obvious answer, I'm way over tired and am not thinking clear enough, but yeah it all working now :)
-
Link Mauve
Great!