Hello! Freinds,
I want to set different color whenever draw() loop is executed. Am using this newly created color to set color for the curves. I am trying to increment, decrement the rgb values
say by 1 or 2 but not that much noticeable change Also they shouldn't cross their limit i.e. 0-255.
Qt Code:
  1. draw()
  2. { // r = 10; g = 255; & b = 180; are static & set previously
  3. color.setRgb(r,g,b);
  4. ..
  5. ... // using the color
  6. ....
  7. r += 2;
  8. g -= 5;
  9. b -= 8;
  10. }
To copy to clipboard, switch view to plain text mode 

Can anyone please give me a hint how to solve this.
Thanks in advance.