lasarus_compotents/bgrabitmap/test/testsvg/svg/29 polygon gradient.svg

10 lines
510 B
XML

<svg height="210" width="500">
<defs>
<linearGradient id="grad1" x1="0%" y1="20%" x2="100%" y2="100%">
<stop offset="0%" style="stop-color:rgb(0,255,0);stop-opacity:1" />
<stop offset="50%" style="stop-color:rgb(0,255,255);stop-opacity:1" />
<stop offset="100%" style="stop-color:rgb(255,0,255);stop-opacity:0.5" />
</linearGradient>
</defs>
<polygon points="100,10 40,198 190,78 10,78 160,198" style="stroke:purple;stroke-width:5;fill-rule:evenodd;" fill="url(#grad1)"/>
</svg>