Creates a rectangle from origin (x, y) and size (width, height).
x
y
width
height
Rectangle rect(int x, int y, int width, int height) => Rectangle(minX: x, minY: y, maxX: x + width, maxY: y + height);