SVGEllipse

Part of wslib


see also: SVG, SVGFile


superclass : SVGObject


The SVGEllipse holds the data for an ellipse


creation


SVGEllipse ( cx, cy, rx, ry, name, strokeColor, fillColor, strokeWidth, transform )

creates a new object with the instance variables as described below and in the SVGObject helpfile



SVGEllipse.fromRect ( rect, name, strokeColor, fillColor, strokeWidth, transform )

creates a new object by converting a Rect to cx, cy, rx, ry variables


instance variables


cx, cy

center x and y location of the ellipse


rx, ry

radius of x and y


strokeColor, fillColor

colors for stroke and fill. These can be 

a Color

a String or Symbol with a color name ( e.g. "light_blue" or "#0000FF" )

"none" or nil

SVGEllipse( 200, 200, 100, 50, "my ellipse", "olive", "antique_white" ).plot;


strokeWidth

defaults to 1.