RasterGraphics.rect( x, y, x2, y2 [, filled] )
Draw a rectangle in the canvas using the current stroke and fill styles.
Parameters
Name |
Type |
|
Description |
x |
number |
|
upper-left corner X point |
y |
number |
|
upper-left corner Y point |
x2 |
number |
|
lower-right corner X point |
y2 |
number |
|
lower-right corner Y point |
filled |
boolean |
optional |
True fills the rectangle with the current fill color; false does not fill
the rectangle. |
Returns
Type |
Description |
object |
The graphics object. This allow for chaining multiple setter methods in
one single statement. |