rect method

GraphicsCommandRect rect(
  1. num x,
  2. num y,
  3. num width,
  4. num height,
)

Draw a rectangle at x and y

Implementation

GraphicsCommandRect rect(num x, num y, num width, num height) {
  final command = GraphicsCommandRect(x, y, width, height);
  addCommand(command);
  return command;
}