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

QPainter should support HSL composition modes

    XMLWordPrintable

    Details

    • Type: Suggestion
    • Status: Reported
    • Priority: P3: Somewhat important
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: GUI: Painting
    • Labels:
      None

      Description

      There are 4 composition modes which are defined by W3C for CSS compositing [1] and are implemented by other painting libraries: Cairo [2], CoreGraphics [3], and Skia [4]:

      • "hue" - hue of source and saturation and luminosity of target
      • "saturation" - saturation of the source and hue and luminosity of target
      • "color" - hue and saturation of source and luminosity of target
      • "luminosity" - luminosity of source and hue and saturation of target

      [1] https://www.w3.org/TR/compositing/#blendingnonseparable
      [2] https://www.cairographics.org/manual/cairo-cairo-t.html#CAIRO-OPERATOR-HSL-HUE:CAPS and below
      [3] https://developer.apple.com/documentation/coregraphics/cgblendmode/kcgblendmodehue, https://developer.apple.com/documentation/coregraphics/cgblendmode/kcgblendmodesaturation, https://developer.apple.com/documentation/coregraphics/cgblendmode/kcgblendmodecolor, https://developer.apple.com/documentation/coregraphics/cgblendmode/kcgblendmodeluminosity
      [4] https://skia.org/user/api/SkBlendMode_Reference#Hue and below

        Attachments

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

          Activity

            People

            • Assignee:
              vgt Eirik Aavitsland
              Reporter:
              annulen Konstantin Tokarev
            • Votes:
              1 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Gerrit Reviews

                There are no open Gerrit changes