Not TestedTesting not done, may not work properly
Graphics

OffscreenCanvas API

Render canvas graphics in background web workers detached from DOM.

Checking support...
Advertisement

Interactive Input Workspace

Ready for input

Web API Execution Output

Result output will be displayed here after processing...

Native JavaScript Code Example (Zero Libraries)

const offscreen = new OffscreenCanvas(256, 256);
const ctx = offscreen.getContext('2d');

About the OffscreenCanvas API Web API

OffscreenCanvas provides a canvas that can be rendered off-screen in worker threads.

Specification:W3C & WHATWG Web API Standard
Sponsored Content