From 6cf51095cedaba4d41c1cfbd8e42da91b655b8a1 Mon Sep 17 00:00:00 2001 From: toast-ts <96593068+toast-ts@users.noreply.github.com> Date: Mon, 25 Mar 2024 22:36:33 +1100 Subject: [PATCH] Bruh moment --- src/components/CanvasBuilder.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/CanvasBuilder.ts b/src/components/CanvasBuilder.ts index fb00ab4..f36310d 100644 --- a/src/components/CanvasBuilder.ts +++ b/src/components/CanvasBuilder.ts @@ -29,9 +29,10 @@ 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.globalAlpha = 0; this.ctx.fillStyle = this.palette.background; this.ctx.fillRect(0, 0, this.canvas.width, this.canvas.height); + this.ctx.globalAlpha = 1; // Grey horizontal lines this.ctx.lineWidth = 5;