En este ejercicio se debe crear un programa que muestre un dibujo SVG de un corazón.

<p>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg"
width="320" height="270" viewBox="-10 -10 320 270"
style="border: black 1px solid">
<polyline points="200,100 100,0 0,100 150,250 300,100 200,0 150,50"
fill="pink" stroke="red" stroke-width="5"/>
</svg>
</p>
<p>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg"
width="620" height="520" viewBox="-10 -10 620 520"
style="border: black 1px solid">
<polyline points="400,200 200,0 0,200 300,500 600,200 400,0 300,100"
fill="pink" stroke="red" stroke-width="5"/>
</svg>
</p>
<p>
<svg version="1.1" xmlns="http://www.w3.org/2000/svg"
width="740" height="620" viewBox="-10 -10 740 620"
style="border: black 1px solid">
<polyline points="480,240 240,0 0,240 360,600 720,240 480,0 360,120"
fill="pink" stroke="red" stroke-width="5"/>
</svg>
</p>
Nota: El día del examen los alumnos no tienen acceso a este ejemplo, solamente tienen acceso a las capturas del apartado anterior.
Un ejemplo de programa puede probarse en la ventana siguiente: