-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHSVGradient.qml
More file actions
31 lines (25 loc) · 905 Bytes
/
HSVGradient.qml
File metadata and controls
31 lines (25 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
import QtQuick 2.5
import QtGraphicalEffects 1.0
Item {
LinearGradient {
anchors.fill: parent
y: parent.height / 2
start: Qt.point(0, parent.height / 2);
end: Qt.point(parent.width, parent.height / 2);
cached: true
gradient: Gradient {
GradientStop {position: 0/6; color: Qt.rgba(1, 0, 0, 1)}
GradientStop {position: 1/6; color: Qt.rgba(1, 1, 0, 1)}
GradientStop {position: 2/6; color: Qt.rgba(0, 1, 0, 1)}
GradientStop {position: 3/6; color: Qt.rgba(0, 1, 1, 1)}
GradientStop {position: 4/6; color: Qt.rgba(0, 0, 1, 1)}
GradientStop {position: 5/6; color: Qt.rgba(1, 0, 1, 1)}
GradientStop {position: 6/6; color: Qt.rgba(1, 0, 0, 1)}
}
}
Rectangle {
anchors.fill: parent
color: "transparent"
border.color: "black"
}
}