From f6d4b255f0abcfed35aa1d14d959d7cec032a951 Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Mon, 25 Mar 2024 22:21:32 +1100 Subject: [PATCH] Disable transparency --- src/components/CanvasBuilder.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/CanvasBuilder.ts b/src/components/CanvasBuilder.ts index ee4174c..fb00ab4 100644 --- a/src/components/CanvasBuilder.ts +++ b/src/components/CanvasBuilder.ts @@ -29,6 +29,7 @@ export default class CanvasBuilder { const origin = [15, 65]; const size = [1300, 630]; const nodeWidth = size[0] / (data.length - 1); + this.ctx.globalAlpha = 1; this.ctx.fillStyle = this.palette.background; this.ctx.fillRect(0, 0, this.canvas.width, this.canvas.height);