Modern XMPP project discussion - 2025-10-03


  1. 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

  2. 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?

  3. grim

    hah yeah that's the problem.. should the lightness be at 100 for this?

  4. 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.

  5. grim

    yeah it's not 100..

  6. grim

    maybe 50 50 ?

  7. grim

    saturation 100, lightness 50

  8. Link Mauve

    Ta.

  9. Link Mauve

    grim, https://github.com/xsf/xeps/pull/1465

  10. 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 :)

  11. Link Mauve

    Great!