Function path

  • Draw a path defined by the given points onto the given ctx.

    Parameters

    • context: CanvasRenderingContext2D

      The context onto which the properties should be drawn.

    • points: Vec2[]

      An array of Vec2 objects that define the path.

    • Optional dontJoinLast: boolean

      If the last point should joined with the first point in the path.

    Returns void