Element - rectangle

The rectangle element draws a rectangle.

Syntax:

Element

Attributes

Value

Notes for Element/Attribute/Value

rectangle

x1

integer

Default is 0.

y1

integer

Default is 0.

width

integer

Default is 0.

height

integer

Default is 0.

radius

integer

Default is 0.

line-width

integer

Default is 0.

stroke-color

color

Default is black.

fill-color

color

 

 

Example

<rectangle x1="10" y1="100" width="180" height="40"/>