• Clears the canvas.

    Parameters

    • context: CanvasRenderingContext2D

      The canvas context to clear.

    • dimension: IDimension

      The dimension of the canvas.

    Returns void