0

offscreen canvas and web worker

Hello all. So I have been playing around with canvas lately and was wondering if anyone knew how to render to canvas from offscreen canvas properly. this is pretty much where im at: let canvas = document.querySelector("canvas").transferControlToOffscreen(); let worker = new Wokrker("canvasworker.js"); worker.postMessage({canvas:canvas},[canvas]); in worker i set canvas to canvas and ctx to context 2d...

6th Jun 2020, 7:23 PM
Chad Williams
Chad Williams - avatar
1 Answer
0
What will this do out of curiosity?
20th Jul 2020, 7:55 AM
Logomonic Learning
Logomonic Learning - avatar