PS: Note, that it is perfectly possible, that I just made a mistake in
my implementation and that the formulas from wikipedia and the cited
page are perfectly fine :D

On 10.07.19 23:10, Paul Schaub wrote:
> Hi everyone!
> 
> I recently updated my implementation of XEP-0392 to version 0.6.0 and I
> ended up having to include a third party library to get my
> implementation to match the provided test vectors.
> 
> The XEP states:
> "Use the HSLuv operation hsluvToRgb to convert the Hue angle to a color."
> 
> Searching for that function yields some promising results, eg.
> 
> https://www.rapidtables.com/convert/color/hsl-to-rgb.html
> 
> but if I try to actually use the formulas written on that page
> (wikipedia as well), I'm not getting the right results.
> 
> If I instead incorporate
> 
> https://github.com/hsluv/hsluv-java
> 
> in my code, I end up with the correct vectors. Unfortunately I cannot
> manage to substitute the library with my own code, as the library does
> some rather complicated calculations via yet another color space.
> 
> I know, this is a very low priority request and there are other XEPs
> that heavily depend on loosely specified library code *cough* OMEMO
> *cough*, but it would be nice, if the actual conversion function
> hsluvToRgb would be included as a formula in the XEP.
> 
> Happy Hacking!
> _______________________________________________
> Standards mailing list
> Info: https://mail.jabber.org/mailman/listinfo/standards
> Unsubscribe: standards-unsubscr...@xmpp.org
> _______________________________________________
> 
_______________________________________________
Standards mailing list
Info: https://mail.jabber.org/mailman/listinfo/standards
Unsubscribe: standards-unsubscr...@xmpp.org
_______________________________________________

Reply via email to