From aedd51e5f8f0533928ef3379f353535d6491e68d 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..266bb89 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.floor(leftX); + context.fillStyle = COLORS[timeOfDay].sky; context.fillRect(leftX, 0, width, 56); context.fillStyle = COLORS[timeOfDay].surface;