Function clearRect

  • Clear a rectangle on the current graphics context. Resets pixels completely.

    Parameters

    • x: number

      The x coordinate of the rectangle to clear

    • y: number

      The y coordinate of the rectangle to clear

    • width: number

      The width of the rectangle to clear

    • height: number

      The height of the rectangle to clear

    Returns void

Generated using TypeDoc