File:SVG exact five-armed star filled.svg
From Wikimedia Commons, the free media repository
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
[edit] See also
File history
Click on a date/time to view the file as it appeared at that time.
| Date/Time | Thumbnail | Dimensions | User | Comment | |
|---|---|---|---|---|---|
| current | 14:48, 25 March 2006 | 800×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) |
- Edit this file using an external application (See the setup instructions for more information)
File links
The following 6 pages link to this file:
Global file usage
The following other wikis use this file:
- Usage of SVG exact five-armed star filled.svg on enwiki