17/2. feladat megoldása


<?xml version="1.0"?>

<!DOCTYPE svg PUBLIC "-//W3//DTD SVG 1.1//EN"
	"http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">

<svg xmlns= "http://www.w3.org/2000/svg"
     xmlns:xlink= "http://www.w3.org/1999/xlink"
     version="1.1" width="200" height="200">

<defs>

<clipPath id="kor" clipPathUnits="objectBoundingBox">
  <circle cx="0.5" cy="0.5" r="0.5"/>
</clipPath>

</defs>

<!--Hatteret ado teglalapok-->
<rect x="0" y="170" width="200" height="30"
      style="fill: tan; clip-path: url(#kor);"/>
<rect x="0" y="0" width="200" height="170"
      style="fill: lightblue; fill-opacity: 0.3; clip-path: url(#kor);"/>

<!--Lombos fa-->
<rect x="40" y="110" width="30" height="70"
      style="fill: sienna; clip-path: url(#kor);"/>
<ellipse rx="40" ry="50" cx="55" cy="70"
         style="fill: darkgreen; clip-path: url(#kor);"/>

<!--Fenyofa-->
<rect x="130" y="160" width="30" height="20"
      style="fill: maroon; clip-path: url(#kor);"/>
<polygon points="105,160 130,90 120,90 145,20 170,90 160,90 185,160"
         style="fill: forestgreen; clip-path: url(#kor);"/>

</svg>