blob: cd8b55d5b6a1613eb949fa2f6a54e75728973e2d (
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
|
# Version: 1
# CheckVsReference: 5%
gradient_clearStops
gradient_appendStop 0 black
gradient_appendStop 0.4 yellow
gradient_appendStop 1 gray
gradient_setSpread PadSpread
gradient_setCoordinateMode StretchToDeviceMode
# first run is dummy, make it offscreen
save
translate -500 -500
begin_block row
save
setPen nopen
drawRect 50 0 100 100
setPen brush 30
setBrush lightblue
drawRect 175 15 70 70
setFont "times" 110 1000
drawText 270 100 "X"
restore
end_block row
restore
drawText 160 20 "PLAIN"
drawText 560 20 "BRUSH XFORM"
translate 0 20
begin_block block
save
drawText 75 20 "Brush Fill"
drawText 176 20 "Pen Stroke"
drawText 277 20 "Text Stroke"
translate 0 30
drawText 0 50 "Linear"
drawText 0 160 "Radial"
drawText 0 270 "Conical"
gradient_setLinear 0.0 0.0 0.4 0.0
repeat_block row
translate 0 110
gradient_setRadial 0.04 0.08 0.3 0.3 0.05
repeat_block row
translate 0 110
gradient_setConical 0.25 0.1 45
repeat_block row
restore
end_block block
translate 400 0
brushRotate 30.0
brushScale 1.5 .5
brushTranslate 0 -80
repeat_block block
|