equal
deleted
inserted
replaced
|
1 drawText 75 20 "Linear" |
|
2 drawText 176 20 "Radial" |
|
3 drawText 277 20 "Conical" |
|
4 translate 0 30 |
|
5 drawText 0 50 "AA off" |
|
6 drawText 0 151 "AA on" |
|
7 |
|
8 setPen nopen |
|
9 |
|
10 gradient_clearStops |
|
11 gradient_appendStop 0 0x00000000 |
|
12 gradient_appendStop 0.001 red |
|
13 gradient_appendStop 0.2 blue |
|
14 gradient_appendStop 0.4 yellow |
|
15 gradient_appendStop 0.6 cyan |
|
16 gradient_appendStop 0.8 green |
|
17 gradient_appendStop 0.999 red |
|
18 gradient_appendStop 1 0x00000000 |
|
19 |
|
20 gradient_setSpread PadSpread |
|
21 gradient_setCoordinateMode ObjectBoundingMode |
|
22 |
|
23 begin_block row |
|
24 save |
|
25 gradient_setLinear 0.1 0.0 0.9 0.0 |
|
26 drawRect 50 0 100 100 |
|
27 |
|
28 gradient_setRadial 0.5 0.5 0.5 0.5 0.5 |
|
29 translate 101 0 |
|
30 drawRect 50 0 100 100 |
|
31 |
|
32 gradient_setConical 0.5 0.5 45 |
|
33 translate 101 0 |
|
34 drawRect 50 0 100 100 |
|
35 restore |
|
36 end_block row |
|
37 |
|
38 setRenderHint Antialiasing |
|
39 |
|
40 translate 0 101 |
|
41 repeat_block row |