def rect(self, x, y, width, height, roundness=<NUM_LIT:0.0>, draw=True, **kwargs):
path = self.BezierPath(**kwargs)<EOL>path.rect(x, y, width, height, roundness, self.rectmode)<EOL>if draw:<EOL><INDENT>path.draw()<EOL><DEDENT>return path<EOL>
Draw a rectangle from x, y of width, height.

:param startx: top left x-coordinate
:param starty: top left y-coordinate

:param width: height  Size of rectangle.
:roundness: Corner roundness defaults to 0.0 (a right-angle).
:draw: If True draws immediately.
:fill: Optionally pass a fill color.

:return: path representing the rectangle.