bonk-docs/content/shapes/rectangle.md

268 B

title date weight
Rectangle 2019-09-14T20:37:23-07:00 30

To define a rectangle, give a minimum X and Y and a maximum X and Y.

var left = -1;
var top = -1;
var width = 2;
var height = 2;
var rectangle = new Rectangle(left, top, width, height);