|
1 setRenderHint Antialiasing |
|
2 |
|
3 setPen black |
|
4 |
|
5 begin_block gradients |
|
6 gradient_clearStops |
|
7 gradient_appendStop 0 red |
|
8 gradient_appendStop 0.25 orange |
|
9 gradient_appendStop 0.5 yellow |
|
10 gradient_appendStop 0.8 green |
|
11 gradient_appendStop 1 cyan |
|
12 |
|
13 gradient_setSpread PadSpread |
|
14 gradient_setCoordinateMode ObjectBoundingMode |
|
15 gradient_setLinear 0.2 0.2 0.7 0.7 |
|
16 drawRect 0 0 100 100 |
|
17 |
|
18 gradient_setSpread ReflectSpread |
|
19 gradient_setLinear 0.2 0.2 0.7 0.7 |
|
20 drawEllipse 100 0 100 100 |
|
21 |
|
22 gradient_setSpread RepeatSpread |
|
23 gradient_setLinear 0.2 0.2 0.7 0.7 |
|
24 drawRoundRect 200 0 100 100 |
|
25 |
|
26 gradient_clearStops |
|
27 gradient_appendStop 0 3f7f7fff |
|
28 gradient_appendStop 0.5 dfdfffff |
|
29 gradient_appendStop 1 7f00007f |
|
30 |
|
31 gradient_setSpread PadSpread |
|
32 gradient_setLinear 0.2 0.2 0.8 0.4 |
|
33 drawPolygon [300 0 400 0 350 100] |
|
34 |
|
35 gradient_setSpread RepeatSpread |
|
36 gradient_setLinear 0.2 0.2 0.4 0.4 |
|
37 drawPie 400 0 100 100 720 4320 |
|
38 end_block |
|
39 |
|
40 translate 0 100 |
|
41 scale 1 2 |
|
42 repeat_block gradients |
|
43 |
|
44 resetMatrix |
|
45 translate 0 300 |
|
46 brushTranslate 30 0 |
|
47 brushScale 0.9 0.9 |
|
48 brushRotate 20 |
|
49 repeat_block gradients |
|
50 |
|
51 # Some helpful info perhaps? |
|
52 resetMatrix |
|
53 setPen black |
|
54 # gradient line indicators |
|
55 drawLine 20 20 70 70 |
|
56 drawLine 120 20 170 70 |
|
57 drawLine 220 20 270 70 |
|
58 drawLine 320 20 340 40 |
|
59 drawLine 420 20 440 40 |
|
60 |
|
61 drawLine 20 140 70 240 |
|
62 drawLine 120 140 170 240 |
|
63 drawLine 220 140 270 240 |
|
64 drawLine 320 140 340 180 |
|
65 drawLine 420 140 440 180 |
|
66 |
|
67 drawText 510 50 "No XForm" |
|
68 drawText 510 200 "scale 1x2" |
|
69 drawText 510 300 "brush transform" |
|
70 |
|
71 drawText 10 450 "Pad" |
|
72 drawText 110 450 "Reflect" |
|
73 drawText 210 450 "Repeat" |
|
74 drawText 310 450 "Pad w/alpha" |
|
75 drawText 410 450 "Repeat w/alpha" |