Skip to main content

DrawClearRect

Callable

  • DrawClearRect(Canvas: CanvasRenderingContext2D, x: number, y: number, width: number, height: number): void

  • Clears a rectangle on a canvas


    Parameters

    • Canvas: CanvasRenderingContext2D

      The canvas on which to clear rect

    • x: number

      Position of the image on the X axis

    • y: number

      Position of the image on the Y axis

    • width: number

      Width of the rectangle to clear

    • height: number

      Height of the rectangle to clear

    Returns void

    • Nothing