<svg> <rect id="myBox" x="0" y="0" fill="red" width="100" height="80" /> </svg>
<svg width="300px" height="70px"> <rect x="10" y="10" width="200" height="50" stroke="black" stroke-width="3" fill="none" /> </svg>
<svg width="300" height="50"> <text x="100" y="25">Hello World</text> </svg>
<svg width="300" height="150"> <line x1="0" y1="0" x2="150" y2="150" stroke="black" stroke-width="1" /> </svg>
<svg width="300" height="120"> <circle cx="150" cy="60" r="50" stroke="black" stroke-width="1" fill="none" /> </svg>
<svg width="300" height="120"> <ellipse cx="150" cy="60" rx="100" ry="50" stroke="black" stroke-width="1" fill="none" /> </svg>
<svg width="100" height="100"> <path d="M50 0 L0 100 L100 100 Z" style="fill:red"/> </svg>
<svg width="100" height="150"> <path d="M50 0 L0 150 L100 150 Z" style="fill:red"/> </svg> <svg width="100" height="150"> <path d="M50 50 L0 150 L100 150 Z" style="fill:red"/> </svg>
<svg width="300px" height="100px"> <path stroke="blue" fill="none" d="M 0 0 L 50 50 100 20 150 50 200 10"></path> </svg>
<svg width="300px" height="100px">
<path stroke="red" fill="none" d="M 50 50 L 100 50 150 20 200 80 250 10" style="marker: url(#line-marker)"></path>
<marker id="line-marker" markerWidth="10" markerHeight="10" refX="5" refY="5" stroke="none" fill="red">
<circle cx="5" cy="5" r="5"/>
</marker>
</svg>
<svg>
<rect id="myBox" x="30" y="70" fill="#59acfd" width="30" height="80" />
<rect id="myBox" x="60" y="100" fill="#f99ccd" width="30" height="50" />
<rect id="myBox" x="110" y="20" fill="#59acfd" width="30" height="130" />
<rect id="myBox" x="140" y="50" fill="#f99ccd" width="30" height="100" />
<rect id="myBox" x="190" y="40" fill="#59acfd" width="30" height="110" />
<rect id="myBox" x="220" y="10" fill="#f99ccd" width="30" height="140" />
<path stroke="red" fill="none" d="M 60 130 L 140 70 220 100" style="marker: url(#line-marker)"></path>
<marker id="line-marker" markerWidth="10" markerHeight="10" refX="5" refY="5" stroke="none" fill="red">
<circle cx="5" cy="5" r="5"/>
</marker>
</svg>
<style type="text/css">
.svg-text{
font-weight: bolder;
font-size: 32px;
fill: #000;
stroke: #f00;
stroke-width: 2px;
}
</style>
<svg width="300" height="80">
<text x="10" y="40" class="svg-text">ほにょぺにょこ</text>
</svg>
<svg width="300" height="80">
<defs>
<filter id="svg-text-shadow" x="0" y="0" width="120%" height="120%">
<feGaussianBlur in="SourceAlpha" stdDeviation="2" result="offOut" />
<feOffset in="offOut" dx="-2" dy="2" result="blurOut" />
<feBlend in="SourceGraphic" in2="blurOut" mode="normal" />
</filter>
</defs>
<text x="10" y="40" class="svg-text" filter="url(#svg-text-shadow)"> ほにょぺにょこ</text>
<svg> <rect id="myBox" x="0" y="0" fill="red" width="100" height="80" /> <rect id="myBox" x="50" y="40" fill="blue" width="100" height="80" fill-opacity="0.7" /> </svg>
■ 線がにじむとき
座標を 0.5 ズラすと治ることがあります。
(縦線の例)
<svg width="200" height="200"> <line x1="50" y1="0" x2="50" y2="200" stroke="#707271" stroke-width="1"> <line x1="150.5" y1="0" x2="150.5" y2="200" stroke="#707271" stroke-width="1"> </svg>
■ Microsoft Expression Desin 4
動的に操作するのではなく、ただ絵を描きたいだけならこのソフトがお勧めです。
https://www.microsoft.com/ja-jp/download/search.aspx?q=EXpression
(例)
Desin 4 で描いて SVG で出力したもの。
↓ソースを表示等で見てください。