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