0
|
1 |
path_addRect path 400 0 80 80
|
|
2 |
path_addEllipse path 440 40 60 60
|
|
3 |
|
|
4 |
setRenderHint Antialiasing
|
|
5 |
|
|
6 |
setPen black
|
|
7 |
|
|
8 |
begin_block gradients
|
|
9 |
gradient_clearStops
|
|
10 |
gradient_appendStop 0 red
|
|
11 |
gradient_appendStop 0.25 orange
|
|
12 |
gradient_appendStop 0.5 yellow
|
|
13 |
gradient_appendStop 0.8 green
|
|
14 |
gradient_appendStop 1 cyan
|
|
15 |
|
|
16 |
gradient_setSpread PadSpread
|
|
17 |
gradient_setLinear 20 20 70 70
|
|
18 |
drawRect 0 0 100 100
|
|
19 |
|
|
20 |
gradient_setSpread ReflectSpread
|
|
21 |
gradient_setLinear 120 20 170 70
|
|
22 |
drawEllipse 100 0 100 100
|
|
23 |
|
|
24 |
gradient_setSpread RepeatSpread
|
|
25 |
gradient_setLinear 220 20 270 70
|
|
26 |
drawRoundRect 200 0 100 100
|
|
27 |
|
|
28 |
gradient_clearStops
|
|
29 |
gradient_appendStop 0 3f7f7fff
|
|
30 |
gradient_appendStop 0.5 dfdfffff
|
|
31 |
gradient_appendStop 1 7f00007f
|
|
32 |
|
|
33 |
gradient_setSpread PadSpread
|
|
34 |
gradient_setLinear 320 20 340 40
|
|
35 |
drawPolygon [300 0 390 0 350 99]
|
|
36 |
|
|
37 |
gradient_setSpread ReflectSpread
|
|
38 |
gradient_setLinear 420 20 440 40
|
|
39 |
drawPath path
|
|
40 |
|
|
41 |
gradient_setSpread RepeatSpread
|
|
42 |
gradient_setLinear 520 20 540 40
|
|
43 |
drawPie 500 0 100 100 720 4320
|
|
44 |
end_block
|
|
45 |
|
|
46 |
translate 0 100
|
|
47 |
scale 1 2
|
|
48 |
repeat_block gradients
|
|
49 |
|
|
50 |
resetMatrix
|
|
51 |
translate 0 300
|
|
52 |
brushTranslate 30 0
|
|
53 |
brushScale 0.9 0.9
|
|
54 |
brushRotate 20
|
|
55 |
repeat_block gradients
|
|
56 |
|
|
57 |
# Vertical gradient tests
|
|
58 |
resetMatrix
|
|
59 |
setBrush noBrush
|
|
60 |
translate 0 400
|
|
61 |
|
|
62 |
begin_block vertical_gradients
|
|
63 |
gradient_clearStops
|
|
64 |
gradient_appendStop 0 red
|
|
65 |
gradient_appendStop 0.25 orange
|
|
66 |
gradient_appendStop 0.5 yellow
|
|
67 |
gradient_appendStop 0.8 green
|
|
68 |
gradient_appendStop 1 cyan
|
|
69 |
|
|
70 |
gradient_setSpread PadSpread
|
|
71 |
gradient_setLinear 20 20 20 70
|
|
72 |
drawRect 0 0 100 100
|
|
73 |
|
|
74 |
gradient_setSpread ReflectSpread
|
|
75 |
gradient_setLinear 120 20 120 70
|
|
76 |
drawEllipse 100 0 100 100
|
|
77 |
|
|
78 |
gradient_setSpread RepeatSpread
|
|
79 |
gradient_setLinear 220 20 220 70
|
|
80 |
drawRoundRect 200 0 100 100
|
|
81 |
|
|
82 |
gradient_clearStops
|
|
83 |
gradient_appendStop 0 3f7f7fff
|
|
84 |
gradient_appendStop 0.5 dfdfffff
|
|
85 |
gradient_appendStop 1 7f00007f
|
|
86 |
|
|
87 |
gradient_setSpread PadSpread
|
|
88 |
gradient_setLinear 320 20 320 40
|
|
89 |
drawPolygon [300 0 390 0 350 99]
|
|
90 |
|
|
91 |
gradient_setSpread ReflectSpread
|
|
92 |
gradient_setLinear 420 20 420 40
|
|
93 |
drawPath path
|
|
94 |
|
|
95 |
gradient_setSpread RepeatSpread
|
|
96 |
gradient_setLinear 520 20 520 40
|
|
97 |
drawPie 500 0 100 100 720 4320
|
|
98 |
end_block
|
|
99 |
|
|
100 |
translate 0 100
|
|
101 |
scale 1 1.5
|
|
102 |
repeat_block vertical_gradients
|
|
103 |
|
|
104 |
resetMatrix
|
|
105 |
translate 0 650
|
|
106 |
brushTranslate 30 0
|
|
107 |
brushScale 0.9 0.9
|
|
108 |
brushRotate 20
|
|
109 |
repeat_block vertical_gradients
|
|
110 |
|
|
111 |
# Some helpful info perhaps?
|
|
112 |
resetMatrix
|
|
113 |
setPen black
|
|
114 |
# gradient line indicators
|
|
115 |
drawLine 20 20 70 70
|
|
116 |
drawLine 120 20 170 70
|
|
117 |
drawLine 220 20 270 70
|
|
118 |
drawLine 320 20 340 40
|
|
119 |
drawLine 420 20 440 40
|
|
120 |
drawLine 520 20 540 40
|
|
121 |
|
|
122 |
drawLine 20 140 70 240
|
|
123 |
drawLine 120 140 170 240
|
|
124 |
drawLine 220 140 270 240
|
|
125 |
drawLine 320 140 340 180
|
|
126 |
drawLine 420 140 440 180
|
|
127 |
drawLine 520 140 540 180
|
|
128 |
|
|
129 |
drawText 610 50 "No XForm"
|
|
130 |
drawText 610 200 "scale 1x2"
|
|
131 |
drawText 610 350 "brush transform"
|
|
132 |
drawText 610 450 "vertical brush"
|
|
133 |
drawText 610 570 "vertical brush scale 1x1.5"
|
|
134 |
drawText 610 700 "vertical brush transform"
|
|
135 |
|
|
136 |
drawText 10 780 "Pad"
|
|
137 |
drawText 110 780 "Reflect"
|
|
138 |
drawText 210 780 "Repeat"
|
|
139 |
drawText 310 780 "Pad w/alpha"
|
|
140 |
drawText 410 780 "Reflect w/alpha"
|
|
141 |
drawText 510 780 "Repeat w/alpha"
|