ASV6 : Using RCC to create regular polygons

Code used  for this element in svg 

<extensionDefs namespace="http://www.example.com/subelements">
    <elementDef name="bar">
        <prototype>
            <path id="drawing_polygon"/>
        </prototype>
        <script ev:event="SVGBindEnd" type="text/ecmascript" xlink:href="regularPolygon.es"/>
    </elementDef>
</extensionDefs>

Syntax for regularPolygon element

<pi:regularPolygon
    cx : coordinate ( 0 by default )
    cy : coordinate ( 0 by default )     
    r : length ( 0 by default )            define circle to put polygon
    sides : integer  ( 0 by default )    define primary arc, circle is divised in 'slides' parts
    cross : integer ( 1 by default )     to draw, give number of arcs between each vertice 1 give convex polygon
    start : angle    to start drawing
    units : degrees | radian  by default degrees are units for start angle

.... presentation attributes
/ >

See example   load script file regularPolygon.es

 

 



chapters: intro toc intro sample svg elements toc svg elements sample


To see SVG examples in HTML you need the SVG plugin:
Adobe SVG Viewer or Corel Viewer
You can also use Batik viewer to open SVG files.




SVG Tutorials
SVG Books
SVG Graphics
MapPoint
SVG Links


Antilles Calling Card

XML Elves
XML and SVG Discussion
- Warning: x = x + 1 May Be Hazardous to Your Brain
- Open Comparability: against anti-benchmarking EULAs

| Rainbow Seeker | SVG PHP


Map Visitors Learn SVG: Contact Learn SVG
©2002-2008 Learn SVG. All Rights Reserved.
Questions and comments to: learnsvg@gmail.com