Represents a rectangular area with x, y, width, height.
Example
// Rect represents a rectangular area with x, y, width, height. // Constructor: new Rect(x, y, width, height) constr1 = newRect(10, 20, 200, 150); console.log('Rect created: x=10, y=20, w=200, h=150');
Represents a rectangular area with x, y, width, height.
Example