gamvas.Rect

Holds position and width information of a rectangle

Constructor

new gamvas.Rect(x, y, w, h);

Parameters

x/ytop left upper corner of the rectangle (optional)
w/hthe width and height of the rectangle (optional)
Summary
gamvas.RectHolds position and width information of a rectangle
Variables
xThe x position of the upper left corner of the rectangle
yThe y position of the upper left corner of the rectangle
widthThe width of the rectangle
heightThe height of the rectangle

Variables

x

this.x

The x position of the upper left corner of the rectangle

y

this.y

The y position of the upper left corner of the rectangle

width

this.width

The width of the rectangle

height

this.height

The height of the rectangle

this.x
The x position of the upper left corner of the rectangle
this.y
The y position of the upper left corner of the rectangle
this.width
The width of the rectangle
this.height
The height of the rectangle
Close