0
|
1 |
# Fill the background
|
|
2 |
drawRect 0 0 width height
|
|
3 |
|
|
4 |
setRenderHint Antialiasing
|
|
5 |
setRenderHint SmoothPixmapTransform
|
|
6 |
|
|
7 |
translate 10 10
|
|
8 |
# Draw all the pattern types as 40x40 rects using green, transparent background
|
|
9 |
begin_block drawrects
|
|
10 |
setBrush green Dense1Pattern
|
|
11 |
drawRect 0 0 40 40
|
|
12 |
setBrush green Dense2Pattern
|
|
13 |
drawRect 40 0 40 40
|
|
14 |
setBrush green Dense3Pattern
|
|
15 |
drawRect 80 0 40 40
|
|
16 |
setBrush green Dense4Pattern
|
|
17 |
drawRect 120 0 40 40
|
|
18 |
setBrush green Dense5Pattern
|
|
19 |
drawRect 160 0 40 40
|
|
20 |
setBrush green Dense6Pattern
|
|
21 |
drawRect 200 0 40 40
|
|
22 |
setBrush green Dense7Pattern
|
|
23 |
drawRect 240 0 40 40
|
|
24 |
setBrush green HorPattern
|
|
25 |
drawRect 280 0 40 40
|
|
26 |
setBrush green VerPattern
|
|
27 |
drawRect 320 0 40 40
|
|
28 |
setBrush green CrossPattern
|
|
29 |
drawRect 360 0 40 40
|
|
30 |
setBrush green BDiagPattern
|
|
31 |
drawRect 400 0 40 40
|
|
32 |
setBrush green FDiagPattern
|
|
33 |
drawRect 440 0 40 40
|
|
34 |
setBrush green DiagCrossPattern
|
|
35 |
drawRect 480 0 40 40
|
|
36 |
setBrush green SolidPattern
|
|
37 |
drawRect 520 0 40 40
|
|
38 |
setBrush green NoBrush
|
|
39 |
drawRect 560 0 40 40
|
|
40 |
gradient_setLinear 0 0 0 40
|
|
41 |
drawRect 600 0 40 40
|
|
42 |
setBrush face.png
|
|
43 |
drawRect 640 0 80 40
|
|
44 |
end_block
|
|
45 |
|
|
46 |
# Switch to opaque mode
|
|
47 |
setBackground #7fff7f
|
|
48 |
setBackgroundMode OpaqueMode
|
|
49 |
translate 0 50
|
|
50 |
|
|
51 |
# Draw all the pattern types as 40x40 rects using green, opaque background
|
|
52 |
repeat_block drawrects
|
|
53 |
|
|
54 |
translate 50 50
|
|
55 |
rotate 10
|
|
56 |
|
|
57 |
|
|
58 |
setBackgroundMode TransparentMode
|
|
59 |
repeat_block drawrects
|
|
60 |
setBackgroundMode OpaqueMode
|
|
61 |
translate 0 40
|
|
62 |
repeat_block drawrects
|
|
63 |
|
|
64 |
|
|
65 |
setBrush dot.png
|
|
66 |
setPen nopen
|
|
67 |
resetMatrix
|
|
68 |
drawRect 0 200 50 50
|
|
69 |
drawRect 50 200 50 50
|
|
70 |
|
|
71 |
setPen red
|
|
72 |
setBrushOrigin 0 250
|
|
73 |
drawRect 0 250 50 50
|
|
74 |
setBrushOrigin 50 250
|
|
75 |
drawRect 50 250 50 50
|
|
76 |
|
|
77 |
|