Class: Rectangle

Carrot.Rectangle(xopt, yopt, widthopt, heightopt)

Carrot.Rectangle

Constructor

new Rectangle(xopt, yopt, widthopt, heightopt)

Creates a rectangle.
Parameters:
Name Type Attributes Default Description
x integer <optional>
0
y integer <optional>
0
width integer <optional>
0
height integer <optional>
0
Source:

Methods

setTo(xopt, yopt, widthopt, heightopt)

Sets the rectangle up.
Parameters:
Name Type Attributes Default Description
x integer <optional>
0
y integer <optional>
x
width integer <optional>
0
height integer <optional>
0
Source: