0
|
1 |
path_addRect path 300 0 80 80
|
|
2 |
path_addEllipse path 340 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_setConical 40 40 50
|
|
17 |
drawRect 0 0 100 100
|
|
18 |
|
|
19 |
gradient_setConical 140 40 230
|
|
20 |
drawEllipse 100 0 100 100
|
|
21 |
|
|
22 |
gradient_clearStops
|
|
23 |
gradient_appendStop 0 3f7f7fff
|
|
24 |
gradient_appendStop 0.5 dfdfffff
|
|
25 |
gradient_appendStop 1 7f00007f
|
|
26 |
|
|
27 |
gradient_setConical 240 40 50
|
|
28 |
drawPolygon [200 0 290 0 250 99]
|
|
29 |
|
|
30 |
gradient_setConical 340 40 230
|
|
31 |
drawPath path
|
|
32 |
|
|
33 |
end_block
|
|
34 |
|
|
35 |
translate 0 100
|
|
36 |
scale 1 2
|
|
37 |
repeat_block gradients
|
|
38 |
|
|
39 |
resetMatrix
|
|
40 |
translate 0 300
|
|
41 |
brushTranslate 30 0
|
|
42 |
brushScale 0.9 0.9
|
|
43 |
brushRotate 20
|
|
44 |
repeat_block gradients
|
|
45 |
|
|
46 |
# Some helpful info perhaps?
|
|
47 |
resetMatrix
|
|
48 |
setPen black
|
|
49 |
|
|
50 |
drawText 410 50 "No XForm"
|
|
51 |
drawText 410 200 "scale 1x2"
|
|
52 |
drawText 410 300 "brush transform"
|
|
53 |
drawText 10 450 "50 deg"
|
|
54 |
drawText 110 450 "230 deg"
|
|
55 |
drawText 210 450 "50 deg w/alpha "
|
|
56 |
drawText 310 450 "230 deg w/alpha"
|
|
57 |
|
|
58 |
setPen 3f000000
|
|
59 |
setBrush nobrush
|
|
60 |
|
|
61 |
begin_block ellipse_draw
|
|
62 |
setClipRect 0 0 100 100
|
|
63 |
drawEllipse 35 35 11 11
|
|
64 |
save
|
|
65 |
translate 40 40
|
|
66 |
rotate -50
|
|
67 |
drawLine -100 0 100 0
|
|
68 |
restore
|
|
69 |
translate 100 0
|
|
70 |
end_block
|
|
71 |
|
|
72 |
repeat_block ellipse_draw
|
|
73 |
repeat_block ellipse_draw
|
|
74 |
repeat_block ellipse_draw
|
|
75 |
|
|
76 |
resetMatrix
|
|
77 |
translate 0 100
|
|
78 |
scale 1 2
|
|
79 |
repeat_block ellipse_draw
|
|
80 |
repeat_block ellipse_draw
|
|
81 |
repeat_block ellipse_draw
|
|
82 |
repeat_block ellipse_draw
|