aboutsummaryrefslogtreecommitdiffstats
path: root/test/resources/fop/svg/transparency.svg
blob: 8f42e177fac2475d20cf91c4d692de390152ccb2 (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
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20001102//EN"
      "http://www.w3.org/TR/2000/CR-SVG-20001102/DTD/svg-20001102.dtd">
<svg width="400" height="400" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">

<g>

<text x="20" y="20" style="font-size:18">Transparency in SVG (to PDF)</text>

<text x="20" y="35" style="font-size:12">Shapes</text>
<rect x="30" y="55" width="100" height="80" style="fill:green;stroke:blue;stroke-width:3;fill-opacity:0.5;stroke-opacity:0.6"/>
<rect x="80" y="95" width="100" height="80" style="fill:red;stroke:yellow;stroke-width:3;fill-opacity:0.5"/>


</g>

<g>
<defs>
      <filter id="Turb" filterUnits="objectBoundingBox"
              x="0%" y="0%" width="100%" height="100%">
        <feTurbulence type="fractalNoise" baseFrequency="0.1" numOctaves="1"/>
      </filter>
</defs>

<text x="20" y="205" style="font-size:12">Image</text>
    <rect x="20" y="210" width="40" height="35" style="fill:blue" />
<text x="60" y="255" style="font-size:20;font-weight:bold">SEE</text>
    <rect x="25" y="215" width="100" height="75" style="filter:url(#Turb)" />


</g>

<text x="220" y="35" style="font-size:12">Text</text>
<rect x="240" y="55" width="130" height="50" style="fill:blue"/>
<text x="280" y="75" style="font-size:20;font-weight:bold;fill-opacity:0.6;fill:green">SEE</text>
<text x="250" y="95" style="font-size:20;font-weight:bold;fill-opacity:0.4;fill:orange;stroke:red">THROUGH</text>

</svg>