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

QPainter should support HSL composition modes

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • P3: Somewhat important
    • None
    • None
    • GUI: Painting
    • 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

            vgt Eirik Aavitsland
            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