blob: 1879cae19bfb3edf2d256404319378c82d8bbd07 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg viewBox="0 0 820 320" version="1.1" xmlns="http://www.w3.org/2000/svg">
<desc>Example mask01 - blue text masked with gradient against red background
</desc>
<defs>
<linearGradient id="Gradient" gradientUnits="userSpaceOnUse" x1="0" y1="0" x2="800" y2="0">
<stop offset="0" stop-color="white" stop-opacity="1"/> <!-- this end is filled -->
<stop offset="1" stop-color="black" stop-opacity="1"/>
</linearGradient>
</defs>
<mask id="Mask1" maskUnits="userSpaceOnUse" x="0" y="0" width="800" height="100">
<rect x="0" y="0" width="800" height="100" fill="url(#Gradient)"/>
</mask>
<mask id="Mask2" maskUnits="userSpaceOnUse" x="0" y="100" width="800" height="100" color-interpolation="linearRGB">
<rect x="0" y="100" width="800" height="100" fill="url(#Gradient)"/>
</mask>
<mask id="Mask3" maskUnits="userSpaceOnUse" x="0" y="200" width="800" height="100" color-interpolation="sRGB">
<rect x="0" y="200" width="800" height="100" fill="url(#Gradient)"/>
</mask>
<rect x="0" y="0" width="800" height="300" fill="#FF8080"/>
<rect x="0" y="0" width="800" height="100" fill="blue" mask="url(#Mask1)"/>
<rect x="0" y="100" width="800" height="100" fill="blue" mask="url(#Mask2)"/>
<rect x="0" y="200" width="800" height="100" fill="blue" mask="url(#Mask3)"/>
</svg>