Fix small gaps in the background

ElementalAlchemist 1 week ago
parent f6f42fbb45
commit e07628fa81

@ -84,6 +84,9 @@ function drawBackground(context, timeOfDay, leftX, width) {
const groundColor = COLORS[timeOfDay].ground; const groundColor = COLORS[timeOfDay].ground;
const surfaceColor = COLORS[timeOfDay].surface; const surfaceColor = COLORS[timeOfDay].surface;
width = Math.ceil(width);
leftX = Math.ceil(leftX);
context.fillStyle = COLORS[timeOfDay].sky; context.fillStyle = COLORS[timeOfDay].sky;
context.fillRect(leftX, 0, width, 56); context.fillRect(leftX, 0, width, 56);
context.fillStyle = COLORS[timeOfDay].surface; context.fillStyle = COLORS[timeOfDay].surface;

Loading…
Cancel
Save