File:SVG exact five-armed star filled.svg

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Original file(SVG file, nominally 800 × 800 pixels, file size: 1 KB)

Captions

Captions

Add a one-line explanation of what this file represents

Summary[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)
Date 25 March 2006 (original upload date)
Source No machine-readable source provided. Own work assumed (based on copyright claims).
Author No machine-readable author provided. Pumbaa80 assumed (based on copyright claims).

Code[edit]

<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>
 
The SVG code is valid.
 
This vector image was created with a text editor.
 
Please do not replace the simplified code of this file with a version created with Inkscape or any other vector graphics editor

Licensing[edit]

Public domain I, the copyright holder of this work, release this work into the public domain. This applies worldwide.
In some countries this may not be legally possible; if so:
I grant anyone the right to use this work for any purpose, without any conditions, unless such conditions are required by law.

See also[edit]

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

File usage on other wikis