Skip to content

ellipse

Eloy Villasclaras edited this page Apr 18, 2016 · 1 revision

<ellipse> draws an ellipse within a <graphics> or a <shape>.

Properties

Property Notes
x Horizontal position of the rectangle
y Vertical
width Ellipse width
height Ellipse height

Style

When a <ellipse> is a child of a <shape>, it inherits its fill and line style. On the other hand, when defined directly under a <graphics> an <ellipse> can define its own style:

Property Type Default Notes
fill number transparent Fill color
fillAlpha number 1 Defines fill color transparency. Between 0 (transparent) and 1 (opaque)
stroke number 0x000000 Line color; a line is rendered if any of stroke, strokeWidth or strokeAlpha is defined
strokeWidth number 1 Line width, in pixels
strokeAlpha number 1 Line color transparency
Clone this wiki locally