Debian Codegraph @

tests/manual/scenegraph_lancelot/data/shaders/gridmesh/resolution_4.qml

raw
1 import QtQuick 2.0
2
3 Rectangle {
4 width: 320
5 height: 480
6 color: "skyblue"
7 ShaderEffect {
8 anchors.centerIn: parent
9 width: 22 * 12
10 height: 16 * 12
11 property variant source: ShaderEffectSource {
12 sourceItem: Rectangle {
13 width: 22 * 20
14 height: 16 * 20
15 color: "#EF2B2D"
16 Rectangle {
17 y: 6 * 20
18 height: 4 * 20
19 width: 22 * 20
20 color: "white"
21 }
22 Rectangle {
23 x: 6 * 20
24 width: 4 * 20
25 height: 16 * 20
26 color: "white"
27 }
28 Rectangle {
29 y: 7 * 20
30 height: 2 * 20
31 width: 22 * 20
32 color: "#002868"
33 }
34 Rectangle {
35 x: 7 * 20
36 width: 2 * 20
37 height: 16 * 20
38 color: "#002868"
39 }
40 }
41 smooth: true
42 }
43 vertexShader: "qrc:shaders/wave.vert"
44 mesh: GridMesh {
45 property int r: 4
46 resolution: Qt.size(r, r)
47 }
48 }
49 }