# \#canvas

**URL:** https://discourse.mozilla.org/tag/canvas/28.md

[Latest](https://discourse.mozilla.org/latest.md) · [Categories](https://discourse.mozilla.org/categories.md) · [Tags](https://discourse.mozilla.org/tags.md)

---

## [How I can retain and replay path2D on canvas?](https://discourse.mozilla.org/t/how-i-can-retain-and-replay-path2d-on-canvas/114074)

<div class="topic-metadata">

**Author:** [@rk6yadav](https://discourse.mozilla.org/u/rk6yadav)\
**Replies:** 0\
**Last updated:** [May 4, 2023, 6:35pm UTC](https://discourse.mozilla.org/t/how-i-can-retain-and-replay-path2d-on-canvas/114074 "2023-05-04T18:35:55Z")

</div>

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 …

---

## [Compositing example](https://discourse.mozilla.org/t/compositing-example/69098)

<div class="topic-metadata">

**Author:** [@Andrew\_Rea](https://discourse.mozilla.org/u/Andrew_Rea)\
**Replies:** 5\
**Last updated:** [October 15, 2020, 4:43pm UTC](https://discourse.mozilla.org/t/compositing-example/69098 "2020-10-15T16:43:56Z")

</div>

From the page path: https://developer.mozilla.org/en-US/docs/Web/API/Canvas\_API/Tutorial/Compositing/Example/#Compositing\_example : I typed out all the code to create the Compositing example on my code editor but when I…

---

## [Context menu for canvas](https://discourse.mozilla.org/t/context-menu-for-canvas/22740)

<div class="topic-metadata">

**Author:** [@mstanke](https://discourse.mozilla.org/u/mstanke)\
**Replies:** 6\
**Last updated:** [December 5, 2017, 11:37pm UTC](https://discourse.mozilla.org/t/context-menu-for-canvas/22740 "2017-12-05T23:37:54Z")

</div>

Hi. Is there a way to add context menu items to canvas, like you can for images with https://developer.mozilla.org/en-US/Add-ons/WebExtensions/API/menus/create?
