Available on HTML5
Path2D interface of the Canvas 2D API is used to declare paths that are then later used on
CanvasRenderingContext2D objects. The path methods of the
CanvasRenderingContext2D interface are present on this interface as well and are allowing you to create paths that you can retain and replay as required on a canvas.