How I can retain and replay path2D on canvas?

On this blog


Path2D allow to retain and replay path2D path on canvas.
How i can implement this
The Path2D interface of the Canvas 2D API is used to declare a path that can then be used on a CanvasRenderingContext2D object. The path methods of the CanvasRenderingContext2D interface are also present on this interface, "which gives you the convenience of being able to retain and replay your path whenever desired."

yes i read this application ,i understand your thought ,so don,t vaist your time and download canva mod apk 2023.