qt5base-lts/tests/arthur/data/qps/gradients.qps
Qt by Nokia 38be0d1383 Initial import from the monolithic Qt.
This is the beginning of revision history for this module. If you
want to look at revision history older than this, please refer to the
Qt Git wiki for how to use Git history grafting. At the time of
writing, this wiki is located here:

http://qt.gitorious.org/qt/pages/GitIntroductionWithQt

If you have already performed the grafting and you don't see any
history beyond this commit, try running "git log" with the "--follow"
argument.

Branched from the monolithic repo, Qt master branch, at commit
896db169ea224deb96c59ce8af800d019de63f12
2011-04-27 12:05:43 +02:00

42 lines
819 B
Plaintext

drawText 75 20 "Linear"
drawText 176 20 "Radial"
drawText 277 20 "Conical"
translate 0 30
drawText 0 50 "AA off"
drawText 0 151 "AA on"
setPen nopen
gradient_clearStops
gradient_appendStop 0 0x00000000
gradient_appendStop 0.001 red
gradient_appendStop 0.2 blue
gradient_appendStop 0.4 yellow
gradient_appendStop 0.6 cyan
gradient_appendStop 0.8 green
gradient_appendStop 0.999 red
gradient_appendStop 1 0x00000000
gradient_setSpread PadSpread
gradient_setCoordinateMode ObjectBoundingMode
begin_block row
save
gradient_setLinear 0.1 0.0 0.9 0.0
drawRect 50 0 100 100
gradient_setRadial 0.5 0.5 0.5 0.5 0.5
translate 101 0
drawRect 50 0 100 100
gradient_setConical 0.5 0.5 45
translate 101 0
drawRect 50 0 100 100
restore
end_block row
setRenderHint Antialiasing
translate 0 101
repeat_block row