JS-SVG: Examples & Library
Experiment with SVG
600X600 SVG Canvas
click here to view svg markup
The functions require the location of the cartesian 0,0 on the screen system an the rotational offset as an angle between 0 and 1.0 in a counter clockwise rotation.
This combination simplifies sizing and rotation of polygons.
dimensional polar coordinate array of distance and angle pairs.
The pi-r-fun ellipse function requires a rotational offset between 0 and 1.0 and an eccentricty parameter between 0 and 1. An ellipse with an eccentricity of 0 is a circle.
Function calls are placed at the bottom of the svgShape function. svgShape function requires div id, svg width and svg height parameters.
The html requires an empty div tag pair with an id.