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