Draws a Rectangle shape.
Syntax
<Rectangle x="float" y="float" width="float" height="float" />
Attributes
The Rectangle
element must contain the following attributes:
x
,y
,width
,height
A collection of geometric attributes that specify the rectangle's size and position.
These attributes are transformable.
Inner elements
The Rectangle
element must contain either a single Stroke
element or a
single Fill
element. A rectangle can also optionally contain any number
of Transform
elements.
Recommended for you
- Note: link text is displayed when JavaScript is off
- Rectangle
- Ellipse
- RoundRectangle