tests/manual/scenegraph_lancelot/data/shaders/recursive/recursive_1.qml
raw| 1 | import QtQuick 2.0 |
| 2 | |
| 3 | Item { |
| 4 | width: 320 |
| 5 | height: 480 |
| 6 | |
| 7 | Rectangle { |
| 8 | id: foo |
| 9 | width: 200 |
| 10 | height: 200 |
| 11 | radius: 100 |
| 12 | anchors.centerIn: parent |
| 13 | gradient: Gradient { |
| 14 | GradientStop { position: 0; color: "red" } |
| 15 | GradientStop { position: 0.5; color: "white" } |
| 16 | GradientStop { position: 1; color: "blue" } |
| 17 | } |
| 18 | ShaderEffectSource { |
| 19 | id: buffer |
| 20 | anchors.fill: parent |
| 21 | sourceItem: foo |
| 22 | live: false |
| 23 | smooth: true |
| 24 | rotation: 37 |
| 25 | recursive: true |
| 26 | } |
| 27 | } |
| 28 | } |