'Draw a rectangle given the topLeft the (x,y) coordinate of the top left
corner and dimensions (w,h) tge width and height
color - The object\'s color as a simple CVColor object, if no value  is sepcified
the default is used.
alpha - The alpha blending for the object. If this value is -1 then the
layer default value is used. A value of 255 means opaque, while 0
means transparent.
w -     The line width in pixels. This does not work if antialiasing is enabled.
filled -The rectangle is filled in'

def rectangle(self, topLeft, dimensions, color=Color.DEFAULT, width=1, filled=False, alpha=(-1)):

    if filled:
        width = 0
    r = pg.Rect((topLeft[0], topLeft[1]), (dimensions[0], dimensions[1]))
    pg.draw.rect(self._mSurface, self._csvRGB2pgColor(color, alpha), r, width)
    tlInt = tuple((int(x) for x in topLeft))
    dimInt = tuple((int(x) for x in dimensions))
    self._mSVG.add(self._mSVG.rect(insert=tlInt, size=dimInt))
    return None
