equal
deleted
inserted
replaced
|
1 |
|
2 setRenderHint Antialiasing |
|
3 |
|
4 setPen #00ff00 |
|
5 |
|
6 translate 10 10 |
|
7 # standard draw |
|
8 begin_block gradient |
|
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 0.9 cyan |
|
15 gradient_appendStop 1 red |
|
16 |
|
17 gradient_setSpread PadSpread |
|
18 gradient_setConical 140 140 100 |
|
19 drawRect 0 0 300 300 |
|
20 end_block gradient |
|
21 |
|
22 # Rotation w/o smooth xform |
|
23 save |
|
24 translate 350 0 |
|
25 save |
|
26 setRenderHint SmoothPixmapTransform on |
|
27 mapQuadToQuad 0 0 0 300 300 300 300 0 0 50 0 200 300 300 300 0 |
|
28 repeat_block gradient |
|
29 restore |
|
30 restore |
|
31 |
|
32 translate 0 320 |
|
33 |
|
34 save |
|
35 setRenderHint SmoothPixmapTransform on |
|
36 mapQuadToQuad 0 0 0 300 300 300 300 0 0 0 100 300 200 300 300 0 |
|
37 repeat_block gradient |
|
38 restore |
|
39 |
|
40 save |
|
41 translate 350 0 |
|
42 save |
|
43 setRenderHint SmoothPixmapTransform on |
|
44 mapQuadToQuad 0 0 0 300 300 300 300 0 0 0 0 300 300 250 300 50 |
|
45 repeat_block gradient |
|
46 restore |
|
47 restore |
|
48 |
|
49 |
|
50 resetMatrix |
|
51 setPen black |
|
52 translate 125 20 |
|
53 drawText 0 0 "No transform" |
|
54 translate 350 0 |
|
55 drawText 0 0 "Left Tilted" |
|
56 resetMatrix |
|
57 translate 125 350 |
|
58 drawText 0 0 "Bottom Tilted" |
|
59 translate 350 0 |
|
60 drawText 0 0 "Right Tilted" |
|
61 translate 120 0 |