Beispiel:SVG-Filter-13.html
Aus SELFHTML-Wiki
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" media="screen" href="./Beispiel:SELFHTML-Beispiel-Grundlayout.css">
<style>
svg {
width: 96%;
padding:0;
margin:0;
background: white;
}
</style>
<title>Beispiel: feOffset</title>
</head>
<body>
<h1>SVG-Filter feOffset</h1>
<svg viewBox="0 0 880 500" >
<defs>
<filter id="Offset" x="-10%" y="-10%" width="170%" height="170%">
<feOffset dx="50" dy="20"/>
</filter>
</defs>
<g transform="translate(100,100)">
<text>Kein Filter</text>
<rect width="200" height="200" fill="none" stroke="#333"/>
<circle cx="100" cy="100" r="100" style="fill:#dfac20; stroke:#c82f04; stroke-width:10"/>
</g>
<g transform="translate(400,100)">
<text>feOffset dx="50" dy="20"</text>
<rect width="200" height="200" fill="none" stroke="#333"/>
<circle cx="100" cy="100" r="100" style="fill:#dfac20; stroke:#c82f04; stroke-width:10" filter="url(#Offset)" />
</g>
</svg>
</body>
</html>