File:SVG exact five-armed star filled.svg

From Wikimedia Commons, the free media repository

Jump to: navigation, search

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

Contents

[edit] Summary

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 | Azərbaycan | Беларуская (тарашкевіца) | Български | Català | Cebuano | Soranî / کوردی | Česky | Cymraeg | Dansk | Deutsch | Ελληνικά | English | Esperanto | Español | Eesti | Euskara | Estremeñu | فارسی | Suomi | Français | Galego | עברית | हिन्दी | Hrvatski | Magyar | Հայերեն | Bahasa Indonesia | Ido | Íslenska | Italiano | 日本語 | ქართული | ភាសាខ្មែរ | 한국어 | Ripoarisch | Kurdî / كوردی | Latina | Lietuvių | Latviešu | 文言 | Македонски | Bahasa Melayu | Plattdüütsch | Nederlands | ‪Norsk (nynorsk)‬ | ‪Norsk (bokmål)‬ | Polski | Português | Română | Русский | Slovenčina | Slovenščina | Shqip | Српски / Srpski | Svenska | ไทย | Tagalog | Türkçe | Українська | Vèneto | Tiếng Việt | Walon | 吴语 | 中文 | ‪中文(简体)‬ | ‪中文(繁體)‬ | 粵語 | +/−

[edit] See also

File history

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

Date/TimeThumbnailDimensionsUserComment
current14:48, 25 March 2006Thumbnail for version as of 14:48, 25 March 2006800×800 (1 KB)Pumbaa80 (Talk | contribs) (== 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)

Global file usage

The following other wikis use this file: