Skip to content

Commit 779b648

Browse files
Enable alpha transparency in canvas context (#93)
1 parent d47398d commit 779b648

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/renderer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ export class CanvasRenderer {
140140

141141
constructor(canvas: HTMLCanvasElement, options: RendererOptions = {}) {
142142
this.canvas = canvas;
143-
const ctx = canvas.getContext('2d', { alpha: false });
143+
const ctx = canvas.getContext('2d', { alpha: true });
144144
if (!ctx) {
145145
throw new Error('Failed to get 2D rendering context');
146146
}

0 commit comments

Comments
 (0)