blob: c436c0f8e45f8c75afd41def6b954d8b33647b8d (
plain)
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
import QtQuick 2.0
Rectangle {
width: 320
height: 480
color: "skyblue"
ShaderEffect {
anchors.centerIn: parent
width: 22 * 12
height: 16 * 12
property variant source: ShaderEffectSource {
sourceItem: Rectangle {
width: 22 * 20
height: 16 * 20
color: "#EF2B2D"
Rectangle {
y: 6 * 20
height: 4 * 20
width: 22 * 20
color: "white"
}
Rectangle {
x: 6 * 20
width: 4 * 20
height: 16 * 20
color: "white"
}
Rectangle {
y: 7 * 20
height: 2 * 20
width: 22 * 20
color: "#002868"
}
Rectangle {
x: 7 * 20
width: 2 * 20
height: 16 * 20
color: "#002868"
}
}
smooth: true
}
vertexShader: "qrc:shaders/wave.vert"
mesh: GridMesh {
property int r: 8
resolution: Qt.size(r, r)
}
}
}
|