User:Lilyuserin/SVG/hexagon+star

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<svg 
xmlns="http://www.w3.org/2000/svg" 
xmlns:xlink="http://www.w3.org/1999/xlink"
version="1.1" height="1502" width="801" >
<defs>
  <style type="text/css"><![CDATA[
   .outline { stroke:black; stroke-width:2 }
   .leer { stroke:black; stroke-width:0; fill:none }
   .cgold { fill:gold }
   .cdgr { fill:darkgreen }
   .ccrim { fill:crimson }
   .cored { fill:orangered }
   .cmar { fill:maroon }
   .cdblue { fill:darkblue }
   .cdslblue { fill:darkslateblue }
  ]]>
  </style>
 <g id="herz" transform="translate(200,400) scale(1,-1)">
   <path 
    d="M0 200 v-200 h200 
    a100,100 90 0,1 0,200
    a100,100 90 0,1 -200,0
    z " />
 </g>
 <g id="hexa">
   <path 
    d="M195,349 L390,0 L195,-349
    h-390 L-390,0 L-195,349
    z " />
  <g opacity="0.2" >
    <circle r="20" fill="black"/>
    <circle r="10" fill="darkblue" cx="195" cy="349" />
    <circle r="10" fill="darkblue" cx="-195" cy="-349" />
    <circle r="10" fill="maroon" cx="390" cy="0" />
    <circle r="10" fill="maroon" cx="-390" cy="0" />
    <circle r="10" fill="cyan" cx="195" cy="-349" />
    <circle r="10" fill="cyan" cx="-195" cy="349" />
  </g>
 </g>
 <g id="star">
   <path id="tria"
    d="M195,349 L195,-349 L-390,0 
    z " />
   <use xlink:href="#tria" transform="rotate(60)" />
 </g>
</defs>
<title>Hexagon</title>
<desc>Sechseck mit Eckpunkten</desc>
<use xlink:href="#hexa" class="outline cgold" opacity="1"
     transform="translate(394,360) scale(1,1)" />
<use xlink:href="#star" class="outline" fill="none" opacity="1"
     transform="translate(394,1100) scale(1,1) rotate(30)" />
</svg>