From e07628fa8100e4413fbc09f07da35f9556a51391 Mon Sep 17 00:00:00 2001 From: ElementalAlchemist Date: Fri, 15 Nov 2024 12:25:16 -0600 Subject: [PATCH] Fix small gaps in the background --- thrimbletrimmer/driveclock/drive.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/thrimbletrimmer/driveclock/drive.js b/thrimbletrimmer/driveclock/drive.js index ff31267..cdd1b74 100644 --- a/thrimbletrimmer/driveclock/drive.js +++ b/thrimbletrimmer/driveclock/drive.js @@ -84,6 +84,9 @@ function drawBackground(context, timeOfDay, leftX, width) { const groundColor = COLORS[timeOfDay].ground; const surfaceColor = COLORS[timeOfDay].surface; + width = Math.ceil(width); + leftX = Math.ceil(leftX); + context.fillStyle = COLORS[timeOfDay].sky; context.fillRect(leftX, 0, width, 56); context.fillStyle = COLORS[timeOfDay].surface;