From 96d9123f19c2c84386a66d4af1fe7e564f5d45da Mon Sep 17 00:00:00 2001 From: flop Date: Tue, 19 May 2026 20:19:27 +0200 Subject: [PATCH] fix: default background is rendered all the time --- ts/src/renderer.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ts/src/renderer.ts b/ts/src/renderer.ts index 2871e0c..bb06c78 100644 --- a/ts/src/renderer.ts +++ b/ts/src/renderer.ts @@ -96,6 +96,9 @@ export class MonoDisplayRenderer { let cleared = false; let elementId = 0; + // default off + this.ctx.fillStyle = this.opts.offColor; + this.ctx.fillRect(0, 0, this.ctx.canvas.width, this.ctx.canvas.height); for (const section of file.sections) { if (section.sectionType === SectionType.ElementsTimespan) {