Quote Originally Posted by wysota View Post
How is the gradient implemented?
Qt Code:
  1. gradient: Gradient {
  2. id: id0
  3. GradientStop {
  4. position: 0.0
  5. id: id1
  6. SequentialAnimation on color {
  7. id: update1
  8. loops: Animation.Infinite
  9. ColorAnimation { from: "red"; to: "magenta"; duration: 1000}
  10. ColorAnimation { from: "magenta"; to: "blue"; duration: 1000}
  11. ColorAnimation { from: "blue"; to: "cyan"; duration: 1000}
  12. ColorAnimation { from: "cyan"; to: "lime"; duration: 1000}
  13. ColorAnimation { from: "lime"; to: "yellow"; duration: 1000}
  14. ColorAnimation { from: "yellow"; to: "red"; duration: 1000}
  15. }
  16. }
  17. GradientStop {
  18. position: 1
  19. id: id2
  20. SequentialAnimation on color {
  21. id: update2
  22. loops: Animation.Infinite
  23. ColorAnimation { from: "yellow"; to: "red"; duration: 1000}
  24. ColorAnimation { from: "red"; to: "magenta"; duration: 1000}
  25. ColorAnimation { from: "magenta"; to: "blue"; duration: 1000}
  26. ColorAnimation { from: "blue"; to: "cyan"; duration: 1000}
  27. ColorAnimation { from: "cyan"; to: "lime"; duration: 1000}
  28. ColorAnimation { from: "lime"; to: "yellow"; duration: 1000}
  29. }
  30.  
  31. }
To copy to clipboard, switch view to plain text mode 
This is one example. I have get color pixel of screen another effect.