Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-133797

Teach QColor about OKLCH

XMLWordPrintable

    • Icon: Suggestion Suggestion
    • Resolution: Unresolved
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.10
    • GUI: Painting
    • None
    • All

      CSS4 now has OKLCH, as described here: https://evilmartians.com/chronicles/oklch-in-css-why-quit-rgb-hsl

      with quite broad browser support

      https://caniuse.com/?search=oklch

      Would be nice to have support for this in QColor, ie a new QColor::Spec::oklch, QColor::from/toOklch, with and without explicit alpha, etc

      I assume this would require some SIMD magic for converting to RGB eg.

       

      https://v0-oklch-visualiser-e69nx1.vercel.app/

      https://oklch.com/#70,0.1258,108,100

       

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            allan.jensen Allan Sandfeld Jensen
            vestbo Tor Arne Vestbø
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes