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

[QML] ColorAnimation with HSL

    XMLWordPrintable

Details

    Description

      A feature request for animating between two colors e.g. red -> green using a HSL interpolation rather than RGB interpolation so that we animate the Hue only so as to avoid the ugly brown color you otherwise get with the ColorAnimation.

      Current with RGB

      ColorAnimation {
      from: "red"
      to: "green"
      }  // gives ugly brown mid-range
      

      Suggestions :

       HSLColorAnimation {
       from: "red"
       to: "green"
       } // does not give ugly brown mid-range
      
      or 
      
      ColorAnimation {
      from: "red"
      to: "green"
      hsl: true // defaults to false for backward compatibility
      }
      

      It should also consider animating the S and L parts too.

      Using QML Colorize or making own in C++ were considered but here we are looking for more elegant approach to animate a color property based on other color scheme

      Attachments

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

        Activity

          People

            qt.team.quick.subscriptions Qt Quick and Widgets Team
            nagrohn Nahomi Gröhn (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes