| 1 |
import QtQuick 2.0 |
| 2 |
|
| 3 |
Rectangle { |
| 4 |
id: r_0000 |
| 5 |
width: 320 |
| 6 |
height: 480 |
| 7 |
color: "white" |
| 8 |
|
| 9 |
property int standardRectWidth: 48 |
| 10 |
property int standardRectHeight: 48 |
| 11 |
|
| 12 |
Text{ |
| 13 |
z: 1 |
| 14 |
text: "simple gradients" |
| 15 |
font.family: "Arial" |
| 16 |
font.pointSize: 20 |
| 17 |
color: "black" |
| 18 |
font.bold: true |
| 19 |
anchors.verticalCenter: parent.Center |
| 20 |
anchors.horizontalCenter : parent.horizontalCenter |
| 21 |
} |
| 22 |
|
| 23 |
Rectangle{ |
| 24 |
id: r_0001 |
| 25 |
x: 0 |
| 26 |
y: 0 |
| 27 |
width: standardRectWidth |
| 28 |
height: standardRectHeight |
| 29 |
color: "red" |
| 30 |
gradient: Gradient{ |
| 31 |
GradientStop{ position: 1.0; color: r_0001.color } |
| 32 |
GradientStop{ position: 0.0; color: "white" } |
| 33 |
} |
| 34 |
} |
| 35 |
Rectangle{ |
| 36 |
id: r_0002 |
| 37 |
x: r_0001.x + standardRectWidth |
| 38 |
y: 0 |
| 39 |
width: standardRectWidth |
| 40 |
height: standardRectHeight |
| 41 |
color: "orange" |
| 42 |
gradient: Gradient{ |
| 43 |
GradientStop{ position: 1.0; color: r_0002.color } |
| 44 |
GradientStop{ position: 0.0; color: "white" } |
| 45 |
} |
| 46 |
} |
| 47 |
Rectangle{ |
| 48 |
id: r_0003 |
| 49 |
x: r_0002.x + standardRectWidth |
| 50 |
y: 0 |
| 51 |
width: standardRectWidth |
| 52 |
height: standardRectHeight |
| 53 |
color: "yellow" |
| 54 |
gradient: Gradient{ |
| 55 |
GradientStop{ position: 1.0; color: r_0003.color } |
| 56 |
GradientStop{ position: 0.0; color: "white" } |
| 57 |
} |
| 58 |
} |
| 59 |
Rectangle{ |
| 60 |
id: r_0004 |
| 61 |
x: r_0003.x + standardRectWidth |
| 62 |
y: 0 |
| 63 |
width: standardRectWidth |
| 64 |
height: standardRectHeight |
| 65 |
color: "green" |
| 66 |
gradient: Gradient{ |
| 67 |
GradientStop{ position: 1.0; color: r_0004.color } |
| 68 |
GradientStop{ position: 0.0; color: "white" } |
| 69 |
} |
| 70 |
} |
| 71 |
Rectangle{ |
| 72 |
id: r_0005 |
| 73 |
x: r_0004.x + standardRectWidth |
| 74 |
y: 0 |
| 75 |
width: standardRectWidth |
| 76 |
height: standardRectHeight |
| 77 |
color: "blue" |
| 78 |
gradient: Gradient{ |
| 79 |
GradientStop{ position: 1.0; color: r_0005.color } |
| 80 |
GradientStop{ position: 0.0; color: "white" } |
| 81 |
} |
| 82 |
} |
| 83 |
Rectangle{ |
| 84 |
id: r_0006 |
| 85 |
x: r_0005.x + standardRectWidth |
| 86 |
y: 0 |
| 87 |
width: standardRectWidth |
| 88 |
height: standardRectHeight |
| 89 |
color: "indigo" |
| 90 |
gradient: Gradient{ |
| 91 |
GradientStop{ position: 1.0; color: r_0006.color } |
| 92 |
GradientStop{ position: 0.0; color: "white" } |
| 93 |
} |
| 94 |
} |
| 95 |
Rectangle{ |
| 96 |
id: r_0007 |
| 97 |
x: r_0001.x |
| 98 |
y: standardRectHeight |
| 99 |
width: standardRectWidth |
| 100 |
height: standardRectHeight |
| 101 |
color: "violet" |
| 102 |
gradient: Gradient{ |
| 103 |
GradientStop{ position: 1.0; color: r_0007.color } |
| 104 |
GradientStop{ position: 0.0; color: "white" } |
| 105 |
} |
| 106 |
} |
| 107 |
Rectangle{ |
| 108 |
id: r_0008 |
| 109 |
x: r_0002.x |
| 110 |
y: standardRectHeight |
| 111 |
width: standardRectWidth |
| 112 |
height: standardRectHeight |
| 113 |
color: "black" |
| 114 |
gradient: Gradient{ |
| 115 |
GradientStop{ position: 1.0; color: r_0008.color } |
| 116 |
GradientStop{ position: 0.0; color: "white" } |
| 117 |
} |
| 118 |
} |
| 119 |
Rectangle{ |
| 120 |
id: r_0009 |
| 121 |
x: r_0003.x |
| 122 |
y: standardRectHeight |
| 123 |
width: standardRectWidth |
| 124 |
height: standardRectHeight |
| 125 |
color: "dark grey" |
| 126 |
gradient: Gradient{ |
| 127 |
GradientStop{ position: 1.0; color: r_0009.color } |
| 128 |
GradientStop{ position: 0.0; color: "white" } |
| 129 |
} |
| 130 |
} |
| 131 |
Rectangle{ |
| 132 |
id: r_0010 |
| 133 |
x: r_0004.x |
| 134 |
y: standardRectHeight |
| 135 |
width: standardRectWidth |
| 136 |
height: standardRectHeight |
| 137 |
color: "light grey" |
| 138 |
gradient: Gradient{ |
| 139 |
GradientStop{ position: 1.0; color: r_0010.color } |
| 140 |
GradientStop{ position: 0.0; color: "white" } |
| 141 |
} |
| 142 |
} |
| 143 |
Rectangle{ |
| 144 |
id: r_0011 |
| 145 |
x: r_0005.x |
| 146 |
y: standardRectHeight |
| 147 |
width: standardRectWidth |
| 148 |
height: standardRectHeight |
| 149 |
color: "pink" |
| 150 |
gradient: Gradient{ |
| 151 |
GradientStop{ position: 1.0; color: r_0011.color } |
| 152 |
GradientStop{ position: 0.0; color: "white" } |
| 153 |
} |
| 154 |
} |
| 155 |
Rectangle{ |
| 156 |
id: r_0012 |
| 157 |
x: r_0006.x |
| 158 |
y: standardRectHeight |
| 159 |
width: standardRectWidth |
| 160 |
height: standardRectHeight |
| 161 |
color: "gold" |
| 162 |
gradient: Gradient{ |
| 163 |
GradientStop{ position: 1.0; color: r_0012.color } |
| 164 |
GradientStop{ position: 0.0; color: "white" } |
| 165 |
} |
| 166 |
} |
| 167 |
|
| 168 |
Rectangle{ |
| 169 |
id: r_0013 |
| 170 |
x: 0 |
| 171 |
y: (standardRectHeight * 2) |
| 172 |
color: "green" |
| 173 |
width: 3 * standardRectWidth |
| 174 |
height: 3 * standardRectHeight |
| 175 |
gradient: Gradient{ |
| 176 |
GradientStop{ position: 0.0; color: "yellow"} |
| 177 |
GradientStop{ position: 0.25; color: "orange"} |
| 178 |
GradientStop{ position: 0.75; color: "purple"} |
| 179 |
GradientStop{ position: 1.0; color: "blue"} |
| 180 |
} |
| 181 |
} |
| 182 |
Rectangle{ |
| 183 |
id: r_0014 |
| 184 |
x: 3 * standardRectWidth |
| 185 |
y: (standardRectHeight * 2) |
| 186 |
color: "red" |
| 187 |
width: 3 * standardRectWidth |
| 188 |
height: 3 * standardRectHeight |
| 189 |
gradient: Gradient{ |
| 190 |
GradientStop{ position: 0.0; color: "blue"} |
| 191 |
GradientStop{ position: 0.25; color: "purple"} |
| 192 |
GradientStop{ position: 0.75; color: "red"} |
| 193 |
GradientStop{ position: 1.0; color: "violet"} |
| 194 |
} |
| 195 |
} |
| 196 |
Rectangle{ |
| 197 |
id: r_00015 |
| 198 |
x: 0 |
| 199 |
y: 5 * standardRectHeight |
| 200 |
width: 6 * standardRectWidth |
| 201 |
height: 6 * standardRectHeight |
| 202 |
color: "black" |
| 203 |
gradient: Gradient{ |
| 204 |
GradientStop{ position: 0.0; color: "cyan"} |
| 205 |
GradientStop{ position: 0.1; color: "purple"} |
| 206 |
GradientStop{ position: 0.2; color: "red"} |
| 207 |
GradientStop{ position: 0.3; color: "yellow"} |
| 208 |
GradientStop{ position: 0.4; color: "blue"} |
| 209 |
GradientStop{ position: 0.5; color: "white"} |
| 210 |
GradientStop{ position: 0.55; color: "red"} |
| 211 |
GradientStop{ position: 0.6; color: "violet"} |
| 212 |
GradientStop{ position: 0.7; color: "blue"} |
| 213 |
GradientStop{ position: 0.8; color: "green"} |
| 214 |
GradientStop{ position: 0.9; color: "red"} |
| 215 |
GradientStop{ position: 1.0; color: "violet"} |
| 216 |
} |
| 217 |
} |
| 218 |
} |
| 219 |
|