The 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.
Documentation Path2D by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See: