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

Teach QColor about OKLCH

    XMLWordPrintable

Details

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

    Description

      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

       

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes