Skip to content
Eloy Villasclaras edited this page Apr 18, 2016 · 2 revisions

<circle> draws a circle within a <graphics> or a <shape>.

Properties

Property Notes
x Horizontal position of the center
y Vertical position of the center
diameter Circle diameter

Style

When a <circle> is a child of a <shape>, it inherits its fill and line style. On the other hand, when defined directly under a <graphics> a <circle> 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