¸í·É | ³»¿ë | ±âÈ£ | ¸Å°³º¯¼ö |
moveto | (no drawing) | M m | (x y)+ |
closepath | (³¡Á¡-½ÃÀÛÁ¡ »çÀÌ line) | Z z | |
lineto | General Line | L l | (x y)+ |
Horizontal Line | H h | x+ | |
Vertical Lline | V v | y+ | |
curveto | cubic Bezier | C c | (x1 y1 x2 y2 x y)+ |
¿¬¼Ó cubic Bezier | S s | (x2 y2 x y)+ | |
Quadratic Bezier | Q q | (x1 y1 x y)+ | |
¿¬¼Ó Quadratic Bezier | T t | (x y)+ | |
Elliptical Arc | A a | (rx ry x-axis-rotation large-arc-flag sweep-flag x y)+ |
<svg width="5cm" height="3cm" viewBox="0 0 700 400"> <rect x="1" y="1" width="698" height="398" fill="none" stroke="blue" /> <path d="M 100 100 L 300 100 200 300 z" fill="red" stroke="blue" stroke-width="5" /> <path d="M 400 100 h 200 v 200 h -200" fill="yellow" stroke="blue" stroke-width="5" /> </svg> |
|
(x1 y1)Àº ÀÚµ¿À¸·Î °è»ê
- x2 y2 ¸¸ ÁöÁ¤
¿¹) S 400 300 400 200
<svg width="5cm" height="4cm" viewBox="0 0 500 400">
<style type="text/css"><![CDATA[
.Border { fill:none; stroke:blue; stroke-width:1 }
.Connect { fill:none; stroke:#888888; stroke-width:2 }
.SamplePath { fill:none; stroke:red; stroke-width:5 }
.EndPoint { fill:none; stroke:#888888; stroke-width:2 }
.CtlPoint { fill:#888888; stroke:none }
.AutoCtlPoint { fill:none; stroke:blue; stroke-width:4 }
.Label { font-size:22; font-family:Verdana }
]]>
</style>
<rect class="Border" x="1" y="1" width="498" height="398" />
<polyline class="Connect" points="100,200 100,100" />
<polyline class="Connect" points="250,100 250,200" />
<polyline . . . /> <polyline . . . 400,200" />
<path class="SamplePath" d="M100,200 C100,100 250,100 250,200 S400,300 400,200" />
<circle class="EndPoint" cx="100" cy="200" r="10" />
<circle . . . /> <circle . . . />
<circle class="CtlPoint" cx="100" cy="100" r="10" />
<circle . . . /> <circle . . . />
<circle class="AutoCtlPoint" cx="250" cy="300" r="9" />
<text class="Label" x="25" y="70">M100,200 C100,100 250,100 250,200</text>
<text class="Label" x="325" y="350"> S400,300 400,200</text>
</svg>
¿¹) Q400,50 600,300 ¿¹) T1000, 300
|
<svg width="12cm" height="6cm" viewBox="0 0 1200 600"> <rect x="1" y="1" width="1198" height="598" fill="none" stroke="blue" stroke-width="1" /> <path d="M200,300 Q400,50 600,300 T1000,300" fill="none" stroke="red" stroke-width="5" /> <!-- End points --> <g fill="black" > <circle cx="200" cy="300" r="10"/> <circle cx="600" cy="300" r="10"/> <circle cx="1000" cy="300" r="10"/> </g> <!-- Control points and lines --> <g fill="#888888" > <circle cx="400" cy="50" r="10"/> <circle cx="800" cy="550" r="10"/> </g> <path d="M200,300 L400,50 L600,300 L800,550 L1000, 300" fill="none" stroke="#888888" stroke-width="2" /> </svg> |
<svg width="6cm" height="8cm" viewBox="0 0 600 800"
> |
|