Skip to content

executeCommands

executeCommands(ctx, commands): void

Defined in: perf/offscreen.ts:60

Execute draw commands on a 2D context (works on both OffscreenCanvas and regular Canvas).

Parameters

ctx

CanvasRenderingContext2D | OffscreenCanvasRenderingContext2D

commands

DrawCommand[]

Returns

void