Canvas.Rectangle


public function Rectangle

Prototype:

public function Rectangle(x,y,w,h,filled=false);

Parameters

x
the x coordinate of the top left corner
y
the y coordinate of the top left corner
w
the width of the rectangle
h
the height of the rectangle
filled
if set to true, the rectangle will be filled

Description:

Draws a rectangle originating in (x,y) and having the (w,h) width, respectively height.

Return value:

Returns null.