summaryrefslogtreecommitdiffstats
path: root/tests/auto/lancelot/scripts/brush_pens.qps
blob: b9a2bc0adac2cab6f11f3fcb459d3ad484ac58d7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# Version: 1
# CheckVsReference: 5%

path_addRect p 0 0 75 75
path_addEllipse p 25 25 75 75

translate 10 10

begin_block setup_gradient
  gradient_clearStops
  gradient_appendStop 0   red
  gradient_appendStop 0.1 blue
  gradient_appendStop 0.2 yellow
  gradient_appendStop 0.3 cyan
  gradient_appendStop 0.4 magenta
  gradient_appendStop 0.5 green
  gradient_appendStop 0.6 black
  gradient_appendStop 0.7 indianred
  gradient_appendStop 0.8 white
  gradient_appendStop 0.9 orange
  gradient_appendStop 1   blue
 gradient_setLinear 0 0 100 100
end_block

setPen brush 0
setBrush nobrush

begin_block drawing
  save
    drawLine 0 0 100 100

    translate 0 100
    drawPath p

    translate 0 110
    drawRect 0 0 100 100

    translate 0 110
    drawPolyline [0 0 100 0 50 50]

    drawPoint 40 40
    drawPoint 41 40
    drawPoint 42 40
    drawPoint 43 40
    drawPoint 44 40
    drawPoint 45 40
    drawPoint 46 40
    drawPoint 47 40
    drawPoint 48 40
    drawPoint 49 40
    drawPoint 50 40

  restore
end_block

save
  translate 110 0
  save
    setRenderHint Antialiasing
    repeat_block drawing
  restore

  setBrush dome_rgb32.png
  setPen brush 0
  setBrush nobrush

  translate 110 0
  repeat_block drawing

  translate 110 0
  save
    setRenderHint Antialiasing
    repeat_block drawing
  restore
restore

translate 0 0

save
  repeat_block setup_gradient
  setPen brush 5
  setBrush nobrush
  translate 0 350
  repeat_block drawing

  translate 110 0
  save
    setRenderHint Antialiasing
    repeat_block drawing
  restore

  setBrush dome_rgb32.png
  setPen brush 5
  setBrush nobrush

  translate 110 0
  repeat_block drawing

  translate 110 0
  save
    setRenderHint Antialiasing
    repeat_block drawing
  restore
restore