Draws a rectangle defined by a location (x,y) and dimension (width x height). If arcWidth and arcHeight are defined then it will draw a rounded rectangle.
Properties
| Property | Default | Notes |
|---|---|---|
| x | 0 | |
| y | 0 | |
| width | 10 | |
| height | 10 | |
| arcWidth | ||
| arcHeight |
Examples
rect( x: 10, y: 10, width: 300, height: 80, borderColor: 'darkRed', borderWidth: 2, fill: 'red' )

rect( x: 10, y: 10, width: 300, height: 80, borderColor: 'blue', borderWidth: 2, fill: 'cyan',
arcWidth: 20, arcHeight: 20 )

Labels
(None)