GraphicsCommandRect rect(num x, num y, num width, num height)

Draw a rectangle at x and y

Source

GraphicsCommandRect rect(num x, num y, num width, num height) {
  var command = new GraphicsCommandRect(x, y, width, height);
  this.addCommand(command);
  return command;
}