¿¹Á¦ 1.1 (¿ø±×¸®±â) : ¹®¼ÆíÁý±â·Î ÀÛ¼º ÈÄ "ex01-01.svg"·Î ÀúÀå
<?xml version="1.0"
standalone="no"?> <!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000802//EN" "http://www.w3.org/TR/2000/CR-SVG-20000802/DTD/svg-20000802.dtd"> <svg width="50" height="50"> <circle cx="25" cy="25" r="20" style="fill:red" /> </svg> |
XML ¼±¾ð¹® |
¿¹Á¦ 1.2 (¿øÀÇ Å©±â/»ö»ó µî) : Adobe SVG viewer
<?xml version="1.0" ?> <svg width="50" height="50"> <circle cx="40" cy="40" r="40" style="fill:green" /> </svg> |
DTD ¼±¾ð :
Adobe SVG viewer ¿¡¼ ÁöÁ¤ |
<rect> <circle> <ellipse> <line> <polyline> <polygon>
µµÇü | ¿ä¼Ò¸í | ¼Ó¼º |
»ç°¢Çü | rect | x="<ÁÂÇ¥°ª>" y="<ÁÂÇ¥°ª>" width="<Å©±â>" height="<Å©±â>" |
µÕ±Ù »ç°¢Çü | rect |
x="<ÁÂÇ¥°ª>" y="<ÁÂÇ¥°ª>" width="<Å©±â>"
height="<Å©±â>" rx="<Å©±â>" ry="<Å©±â>" |
¿ø | circle | cx="<ÁÂÇ¥°ª>" cy="<ÁÂÇ¥°ª>" r="<Å©±â>" |
Ÿ¿ø | ellipse | cx="<ÁÂÇ¥°ª>" cy="<ÁÂÇ¥°ª>" rx="<Å©±â>" ry="<Å©±â>" |
¼± | line | x1="<ÁÂÇ¥°ª>" y1="<ÁÂÇ¥°ª>" x2="<ÁÂÇ¥°ª>" y2="<ÁÂÇ¥°ª>" |
¿¬°á¼± | polyine | points ="<Á¡µéÀÇ ¸®½ºÆ®>" |
´Ù°¢Çü | polygon | points ="<Á¡µéÀÇ ¸®½ºÆ®>" |
<?xml version="1.0"
standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20010904//EN" "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <svg width="180" height="200"> <rect x="1" y="1" width="170" height="190" style="fill:none; stroke:blue; stroke-width:1"/> <rect x="40" y="10" width="80" height="40" fill="yellow" stroke="navy" stroke-width="3" /> <rect x="40" y="60" width="80" height="40" rx="10" fill="green" /> <g transform="translate(40 150) rotate(-30)"> <rect x="0" y="0" width="80" height="40" rx="20" fill="none" stroke="purple" stroke-width="5" /> </g> </svg> |
|
<svg width="200" height="170"> <rect x="0" y="0" width="200" height="170" fill="yellow" /> <circle cx="40" cy="40" r="30" fill="red" stroke="blue" stroke-width="4" /> <ellipse cx="130" cy="40" rx="50" ry="30" fill="red" /> <ellipse transform="translate(80 110) rotate(-20)" rx="50" ry="30" fill="none" stroke="blue" stroke-width="10" /> </svg> |
|
<svg width="200" height="200"> <line x1="10" y1="50" x2="50" y2="10" stroke="green" stroke-width="1" /> <line x1="70" y1="50" x2="110" y2="10" stroke="green" stroke-width="10" /> <line x1="130" y1="50" x2="170" y2="10" stroke="green" stroke-width="20" /> <polyline fill="none" stroke="red" stroke-width="3" points="10,95 30,95 30,85 50,85 50,95 70,95 70,80 90,80 90,95 110,95 110,75 130,75 130,95 150,95 150,70 170,70 170,95 190,95" /> <polygon fill="lime" stroke="blue" stroke-width="3" points="100,125 128,137.5 128,162.5 100,175 72,162.5 72,137.5" /> </svg> |
|
<svg width="180" height="100"> |
|
<svg width="180" height="100"> <text x="10" y="40" font-size="20pt" fill="red"> Hello! 안녕! </text> <text x="10" y="80" font-family="Batang" font-size="20pt" fill="blue"> Hello! 안녕! </text> </svg> |
|
<svg width="200" height="100"> <g style="font-family:Arial; font-size:14pt; fill:blue"> <text x="10" y="30"> Hello! <tspan font-weight="bold" fill="red">Good</tspan> Morning! </text> <text x="10" y="70"> Hello! <tspan dx="20" dy="-10" font-weight="bold" fill="red"> Wonderful</tspan> <tspan dx="-30" dy="15" font-weight="bold">Day! </tspan> </text> </g> </svg> |
|
<svg width="200" height="100"> <defs> <text id="Hel">Hello!</text> </defs> <text x="10" y="20" font-size="10pt"> 3 times : </text> <text x="20" y="40" style="font-family:Arial; font-size:14pt; fill:green"> <tref xlink:href="#Hel"/> </text> <text x="70" y="50" style="font-family:Arial; font-size:16pt; fill:blue"> <tref xlink:href="#Hel"/> </text> <text x="130" y="60" style="font-family:Arial; font-size:18pt; fill:red"> <tref xlink:href="#Hel"/> </text> </svg> |
|
¿¹
<svg width="200" height="100"> <defs> <path id="MyP1" d="M 20 50 C 40 10 70 70 100 50 C 120 10 150 70 180 50 " /> </defs> <use xlink:href="#MyP1" style="fill:none; stroke:red" /> <text style="font-family:Arial; font-size:14pt; fill:blue"> <textPath xlink:href="#MyP1"> textPath</textPath> <textPath xlink:href="#MyP1" startOffset="90"> textPath </textPath> </text> </svg> |
|