summaryrefslogtreecommitdiffstats
path: root/tests/auto/lancelot/scripts/radial_gradients_perspectives.qps
diff options
context:
space:
mode:
authoraavit <qt-info@nokia.com>2010-08-25 11:49:34 (GMT)
committeraavit <qt-info@nokia.com>2010-08-25 11:49:34 (GMT)
commitdeef2e16776c171d4b033257cd4fc3ab2bd005a3 (patch)
tree85ac87094fc690f71d20a6bd2989879b166992bf /tests/auto/lancelot/scripts/radial_gradients_perspectives.qps
parentdae23694cb89b853785a5772cc7e0477f65ac5bf (diff)
downloadQt-deef2e16776c171d4b033257cd4fc3ab2bd005a3.zip
Qt-deef2e16776c171d4b033257cd4fc3ab2bd005a3.tar.gz
Qt-deef2e16776c171d4b033257cd4fc3ab2bd005a3.tar.bz2
First shot at a new client-server based autotest of the Arthur
2D rendering system, based on the lance test tool. Hence dubbed lancelot.
Diffstat (limited to 'tests/auto/lancelot/scripts/radial_gradients_perspectives.qps')
-rw-r--r--tests/auto/lancelot/scripts/radial_gradients_perspectives.qps62
1 files changed, 62 insertions, 0 deletions
diff --git a/tests/auto/lancelot/scripts/radial_gradients_perspectives.qps b/tests/auto/lancelot/scripts/radial_gradients_perspectives.qps
new file mode 100644
index 0000000..4557354
--- /dev/null
+++ b/tests/auto/lancelot/scripts/radial_gradients_perspectives.qps
@@ -0,0 +1,62 @@
+# Version: 1
+
+
+setRenderHint Antialiasing
+
+setPen #00ff00
+
+translate 10 10
+# standard draw
+begin_block gradient
+gradient_clearStops
+gradient_appendStop 0 red
+gradient_appendStop 0.25 orange
+gradient_appendStop 0.5 yellow
+gradient_appendStop 0.8 green
+gradient_appendStop 1 cyan
+
+gradient_setSpread PadSpread
+gradient_setRadial 110 100 230 230 240
+drawRect 0 0 300 300
+end_block gradient
+
+# Rotation w/o smooth xform
+save
+translate 350 0
+save
+ setRenderHint SmoothPixmapTransform on
+ mapQuadToQuad 0 0 0 300 300 300 300 0 0 50 0 200 300 300 300 0
+ repeat_block gradient
+restore
+restore
+
+translate 0 320
+
+save
+ setRenderHint SmoothPixmapTransform on
+ mapQuadToQuad 0 0 0 300 300 300 300 0 0 0 100 300 200 300 300 0
+ repeat_block gradient
+restore
+
+save
+translate 350 0
+save
+ setRenderHint SmoothPixmapTransform on
+ mapQuadToQuad 0 0 0 300 300 300 300 0 0 0 0 300 300 250 300 50
+ repeat_block gradient
+restore
+restore
+
+
+resetMatrix
+setPen black
+translate 125 20
+drawText 0 0 "No transform"
+translate 350 0
+drawText 0 0 "Left Tilted"
+resetMatrix
+translate 125 350
+drawText 0 0 "Bottom Tilted"
+translate 350 0
+drawText 0 0 "Right Tilted"
+translate 120 0 \ No newline at end of file