Image:SVG exact five-armed star filled.svg

From Wikipedia, the free encyclopedia

SVG_exact_five-armed_star_filled.svg (SVG file, nominally 800 × 800 pixels, file size: 1 KB)

Wikimedia Commons logo This is a file from the Wikimedia Commons. The description on its description page there is shown below.
Commons is a freely licensed media file repository. You can help.

Contents

[edit] Description

This is an example of how to draw filled pentagrams in SVG without using approximated coordinates. The pentagrams are composed of triangles in a mathematically correct manner.

Restrictions:

  • You can't use outlines

--Pumbaa80 14:48, 25 March 2006 (UTC)

[edit] Code

<g id="star" transform="scale(1)"><comment>scale=radius of the star</comment>
   <g id="cone">
     <polygon id="triangle" points="0,0 0,1 .5,1" transform="translate(0,-1) rotate(18)"/>
     <use xlink:href="#triangle" transform="scale(-1,1)" />
   </g>
   <use xlink:href="#cone" transform="rotate(72)" />
   <use xlink:href="#cone" transform="rotate(-72)" />
   <use xlink:href="#cone" transform="rotate(144)" />
   <use xlink:href="#cone" transform="rotate(-144)" />
</g>

[edit] Licensing

Public domain I, the copyright holder of this work, hereby release it into the public domain. This applies worldwide.

In case this is not legally possible:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.


Afrikaans | Alemannisch | Aragonés | العربية | Asturianu | Български | Català | Česky | Cymraeg | Dansk | Deutsch | Eʋegbe | Ελληνικά | English | Español | Esperanto | Euskara | Estremeñu | فارسی | Français | Galego | 한국어 | हिन्दी | Hrvatski | Ido | Bahasa Indonesia | Íslenska | Italiano | עברית | Kurdî / كوردی | Latina | Lietuvių | Latviešu | Magyar | Македонски | Bahasa Melayu | Nederlands | ‪Norsk (bokmål)‬ | ‪Norsk (nynorsk)‬ | 日本語 | Polski | Português | Ripoarisch | Română | Русский | Shqip | Slovenčina | Slovenščina | Српски / Srpski | Svenska | ไทย | Tagalog | Türkçe | Українська | Tiếng Việt | Walon | ‪中文(简体)‬ | ‪中文(繁體)‬ | zh-yue-hant | +/-

[edit] See also

File history

Click on a date/time to view the file as it appeared at that time.

Date/TimeDimensionsUserComment
current14:48, 25 March 2006800×800 (1 KB)Pumbaa80 (== Description == This is an example of how to draw filled pentagrams in SVG without using approximated coordinates. The pentagrams are composed of triangles in a mathematically correct manner. Restrictions: *You can't use outlines --~~~~ == Licensing)
The following pages on the English Wikipedia link to this file (pages on other projects are not listed):