• Draws a line between two points using canvas API in the given context.

    Parameters

    • context: CanvasRenderingContext2D

      The canvas context to draw on.

    • begin: ICoordinates

      The start point of the line.

    • end: ICoordinates

      The end point of the line.

    Returns void