SVG HTML

Tile Filter

This SVG example illustrates how to apply a tile filter.

TileFilter.svg

<svg width="400" height="200" xmlns="http://www.w3.org/2000/svg">
  <filter id="idTileFilter">
    <feTile in="SourceGraphic" x="0" y="0" width="100" height="100" result="imgTile"/>
    <feTile in="imgTile" x="0" y="0" width="200" height="200" />
  </filter>
  <!-- Original Version -->
  <circle cx="100" cy="100" r="85" fill="yellow" stroke="none" stroke-width="10"></circle>
  <!-- Filtered Version -->
  <g style="filter: url(#idTileFilter)" transform="translate(200, 0)">
    <circle cx="100" cy="100" r="85" fill="yellow" stroke="none" stroke-width="10"></circle>
  </g>
</svg>
 

Output

 
 

© 2007–2024 XoaX.net LLC. All rights reserved.