uwerat / qskinny

A lightweight framework on top of the Qt scene graph and only few classes from Qt/Quick. It is usable from C++ and/or QML.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

QskGradientIterator

uwerat opened this issue · comments

commented

Would be have a specific iterator for the gradient stops so that application code can iterate without having to deal with:

  • missing stops at 0.0/1.0 ( -> colors are take from the first/last stops then )
  • inverted iteration - f.e useful, when having an decreasing linear gradient vector
  • discrete iteration: sometimes a gradient with fixed colors between the stops ( no interpolation ) is wanted. Today it is necessary to insert 2 stops at the same position.