Debian Codegraph @

test_non_regression/svg/feBlend.svg

raw
1 <?xml version="1.0"?>
2 <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN"
3 "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
4 <svg width="5cm" height="5cm" viewBox="0 0 500 500"
5 xmlns="http://www.w3.org/2000/svg" version="1.1">
6 <title>Example feBlend - Examples of feBlend modes</title>
7 <desc>Five text strings blended into a gradient,
8 with one text string for each of the five feBlend modes.</desc>
9 <defs>
10 <linearGradient id="MyGradient" gradientUnits="userSpaceOnUse"
11 x1="100" y1="0" x2="300" y2="0">
12 <stop offset="0" stop-color="#000000" />
13 <stop offset=".33" stop-color="#ffffff" />
14 <stop offset=".67" stop-color="#ff0000" />
15 <stop offset="1" stop-color="#808080" />
16 </linearGradient>
17 <filter id="Normal">
18 <feBlend mode="normal" in2="BackgroundImage" in="SourceGraphic"/>
19 </filter>
20 <filter id="Multiply">
21 <feBlend mode="multiply" in2="BackgroundImage" in="SourceGraphic"/>
22 </filter>
23 <filter id="Screen">
24 <feBlend mode="screen" in2="BackgroundImage" in="SourceGraphic"/>
25 </filter>
26 <filter id="Darken">
27 <feBlend mode="darken" in2="BackgroundImage" in="SourceGraphic"/>
28 </filter>
29 <filter id="Lighten">
30 <feBlend mode="lighten" in2="BackgroundImage" in="SourceGraphic"/>
31 </filter>
32 </defs>
33 <rect fill="none" stroke="blue"
34 x="1" y="1" width="498" height="498"/>
35 <g enable-background="new" >
36 <rect x="100" y="20" width="300" height="460" fill="url(#MyGradient)" />
37 <g font-family="Verdana" font-size="75" fill="#888888" fill-opacity=".6" >
38 <text x="50" y="90" filter="url(#Normal)" >Normal</text>
39 <text x="50" y="180" filter="url(#Multiply)" >Multiply</text>
40 <text x="50" y="270" filter="url(#Screen)" >Screen</text>
41 <text x="50" y="360" filter="url(#Darken)" >Darken</text>
42 <text x="50" y="450" filter="url(#Lighten)" >Lighten</text>
43 </g>
44 </g>
45 </svg>
46