Originally Posted by
wysota
How is the gradient implemented?
gradient: Gradient {
id: id0
GradientStop {
position: 0.0
id: id1
SequentialAnimation on color {
id: update1
loops: Animation.Infinite
ColorAnimation { from: "red"; to: "magenta"; duration: 1000}
ColorAnimation { from: "magenta"; to: "blue"; duration: 1000}
ColorAnimation { from: "blue"; to: "cyan"; duration: 1000}
ColorAnimation { from: "cyan"; to: "lime"; duration: 1000}
ColorAnimation { from: "lime"; to: "yellow"; duration: 1000}
ColorAnimation { from: "yellow"; to: "red"; duration: 1000}
}
}
GradientStop {
position: 1
id: id2
SequentialAnimation on color {
id: update2
loops: Animation.Infinite
ColorAnimation { from: "yellow"; to: "red"; duration: 1000}
ColorAnimation { from: "red"; to: "magenta"; duration: 1000}
ColorAnimation { from: "magenta"; to: "blue"; duration: 1000}
ColorAnimation { from: "blue"; to: "cyan"; duration: 1000}
ColorAnimation { from: "cyan"; to: "lime"; duration: 1000}
ColorAnimation { from: "lime"; to: "yellow"; duration: 1000}
}
}
gradient: Gradient {
id: id0
GradientStop {
position: 0.0
id: id1
SequentialAnimation on color {
id: update1
loops: Animation.Infinite
ColorAnimation { from: "red"; to: "magenta"; duration: 1000}
ColorAnimation { from: "magenta"; to: "blue"; duration: 1000}
ColorAnimation { from: "blue"; to: "cyan"; duration: 1000}
ColorAnimation { from: "cyan"; to: "lime"; duration: 1000}
ColorAnimation { from: "lime"; to: "yellow"; duration: 1000}
ColorAnimation { from: "yellow"; to: "red"; duration: 1000}
}
}
GradientStop {
position: 1
id: id2
SequentialAnimation on color {
id: update2
loops: Animation.Infinite
ColorAnimation { from: "yellow"; to: "red"; duration: 1000}
ColorAnimation { from: "red"; to: "magenta"; duration: 1000}
ColorAnimation { from: "magenta"; to: "blue"; duration: 1000}
ColorAnimation { from: "blue"; to: "cyan"; duration: 1000}
ColorAnimation { from: "cyan"; to: "lime"; duration: 1000}
ColorAnimation { from: "lime"; to: "yellow"; duration: 1000}
}
}
To copy to clipboard, switch view to plain text mode
This is one example. I have get color pixel of screen another effect.
Bookmarks