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.
Property |
Default |
Notes |
|---|---|---|
x |
|
|
y |
|
|
width |
|
|
height |
|
|
arcWidth |
|
|
arcHeight |
|
|
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 )
|
