code: def drawRect(self, x1, y1, x2, y2, angle=0):
  		
  		vertices = [[x1,y1],[x2,y1],[x2,y2],[x1,y2],]
  		rotatedVertices = rotateMatrix(vertices, (x1+x2)*0.5, (y1+y2)*0.5, angle)
  		self.drawClosedPath(rotatedVertices)
docs: Draws a rectangle on the current :py:class:`Layer` with the current :py:class:`Brush`.
  		Coordinates are relative to the original layer size WITHOUT downsampling applied.
  		
  		:param x1: The X of the top-left corner of the rectangle.
  		:param y1: The Y of the top-left corner of the rectangle.
  		:param x2: The X of the bottom-right corner of the rectangle.
  		:param y2: The Y of the bottom-right corner of the rectangle.
  		:param angle: An angle (in degrees) of rotation around the center of the rectangle.
  		:rtype: Nothing.