DrawClearRect CallableDrawClearRect(Canvas, x, y, width, height): voidClears a rectangle on a canvasParametersCanvas: CanvasRenderingContext2DThe canvas on which to clear rectx: numberPosition of the image on the X axisy: numberPosition of the image on the Y axiswidth: numberWidth of the rectangle to clearheight: numberHeight of the rectangle to clearReturns voidNothing
Clears a rectangle on a canvas