Questions tagged [offscreen-canvas]

Use this tag for questions related to the OffcreenCanvas web API.

Just like the HTMLCanvasElement, the OffscreenCanvas API offers a way to draw graphics, make photo compositions, create animations, and do real-time video processing or rendering.
This API differs from the HTMLCanvasElement in that it is not hooked by a DOM node, and can thus live in a Web Worker. This offers the advantage of both producing complex graphics without blocking the main UI thread, and to be able to run animation smoothly even when the main thread is blocked.

Specifications: https://html.spec.whatwg.org/multipage/canvas.html#the-offscreencanvas-interface MDN documentation: https://developer.mozilla.org/en-US/docs/Web/API/OffscreenCanvas

32 questions
0
votes
2 answers

OffScreenCanvas and touch events

I'm trying to use the new API for the OffScreenCanvas. The idea is to move all logic regarding drawing and updating data for player, but leave some other logic in the main thread, like touch events (because worker cannot reach window object). So I…
Amay
  • 1,461
  • 5
  • 27
  • 56
-2
votes
1 answer

Send message from webworker and wait for reply

I am currently working with webworker and canvas for the first time and have a question about it. I have a webpage that needs to draw multiple elements on a canvas. When the canvas is full I want to create a new canvas and continue drawing on it. I…
1 2
3