Rectangle Class
Represents a rectangle as defined by the points (x, y) and (x+width, y+height).
Example
var rect = new createjs.Rectangle(0, 0, 100, 100);
Constructor
Methods
clone
()
Rectangle
Returns a clone of the Rectangle instance.
Returns:
Rectangle:
a clone of the Rectangle instance.
copy
(
Rectangle
-
rectangle
Copies all properties from the specified rectangle to this rectangle.
Parameters:
-
rectangleRectangleThe rectangle to copy properties from.
Returns:
Rectangle:
This rectangle. Useful for chaining method calls.