g.Rect(x, y, width, height)

Return a new rectangle object with top left corner at point with coordinates x, y and dimensions width and height.

Also accepts a single argument in the form of an object { x: [number], y: [number], width: [number], height: [number] }.