• Draws a triangle with three points using canvas API in the given context.

    Parameters

    • context: CanvasRenderingContext2D

      The canvas context to draw on.

    • p1: ICoordinates

      The first point of the triangle.

    • p2: ICoordinates

      The second point of the triangle.

    • p3: ICoordinates

      The third point of the triangle.

    Returns void