1
0
mirror of https://github.com/toast-ts/Daggerbot-TS.git synced 2024-11-17 00:10:58 -05:00

Disable transparency

This commit is contained in:
toast-ts 2024-03-25 22:21:32 +11:00
parent 6c345a8d17
commit 424be1eabc

View File

@ -29,6 +29,7 @@ export default class CanvasBuilder {
const origin = [15, 65]; const origin = [15, 65];
const size = [1300, 630]; const size = [1300, 630];
const nodeWidth = size[0] / (data.length - 1); const nodeWidth = size[0] / (data.length - 1);
this.ctx.globalAlpha = 1;
this.ctx.fillStyle = this.palette.background; this.ctx.fillStyle = this.palette.background;
this.ctx.fillRect(0, 0, this.canvas.width, this.canvas.height); this.ctx.fillRect(0, 0, this.canvas.width, this.canvas.height);