summaryrefslogtreecommitdiffstats
path: root/tests/arthur/data/qps/linear_resolving_gradients.qps
blob: 2ad9c008765fba84c05f3748a73744eae0eec308 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
setRenderHint Antialiasing

setPen black

begin_block gradients
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_setCoordinateMode ObjectBoundingMode
gradient_setLinear 0.2 0.2 0.7 0.7
drawRect 0 0 100 100

gradient_setSpread ReflectSpread
gradient_setLinear 0.2 0.2 0.7 0.7
drawEllipse 100 0 100 100

gradient_setSpread RepeatSpread
gradient_setLinear 0.2 0.2 0.7 0.7
drawRoundRect 200 0 100 100

gradient_clearStops
gradient_appendStop 0   3f7f7fff
gradient_appendStop 0.5 dfdfffff
gradient_appendStop 1   7f00007f

gradient_setSpread PadSpread
gradient_setLinear 0.2 0.2 0.8 0.4
drawPolygon [300 0 400 0 350 100]

gradient_setSpread RepeatSpread
gradient_setLinear 0.2 0.2 0.4 0.4
drawPie 400 0 100 100 720 4320
end_block

translate 0 100
scale 1 2
repeat_block gradients

resetMatrix
translate 0 300
brushTranslate 30 0
brushScale 0.9 0.9
brushRotate 20
repeat_block gradients

# Some helpful info perhaps?
resetMatrix
setPen black
# gradient line indicators
drawLine 20 20 70 70
drawLine 120 20 170 70
drawLine 220 20 270 70
drawLine 320 20 340 40
drawLine 420 20 440 40

drawLine 20 140 70 240
drawLine 120 140 170 240
drawLine 220 140 270 240
drawLine 320 140 340 180
drawLine 420 140 440 180

drawText 510 50 "No XForm"
drawText 510 200 "scale 1x2"
drawText 510 300 "brush transform"

drawText 10 450 "Pad"
drawText 110 450 "Reflect"
drawText 210 450 "Repeat"
drawText 310 450 "Pad w/alpha"
drawText 410 450 "Repeat w/alpha"