Skip to content

Commit

Permalink
Add key-out color on the ground
Browse files Browse the repository at this point in the history
  • Loading branch information
ElementalAlchemist committed Nov 13, 2024
1 parent e68720e commit 95e9b7f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion thrimbletrimmer/driveclock/drive.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@ const COLORS = {
},
};

const KEY_OUT_COLOR = "#2b6ec6";

// The width from the left side of the bus image to the front of the bus
const BUS_FRONT_OFFSET = 73;

Expand Down Expand Up @@ -76,8 +78,10 @@ function drawBackground(context, timeOfDay, leftX, width) {
const groundColor = COLORS[timeOfDay].ground;
const surfaceColor = COLORS[timeOfDay].surface;

context.fillStyle = KEY_OUT_COLOR;
context.fillRect(leftX, 80, width, 20);
context.fillStyle = COLORS[timeOfDay].sky;
context.fillRect(leftX, 0, width, 100);
context.fillRect(leftX, 0, width, 80);
context.fillStyle = COLORS[timeOfDay].surface;
context.fillRect(leftX, 80, width, 1);
context.fillStyle = COLORS[timeOfDay].ground;
Expand Down

0 comments on commit 95e9b7f

Please sign in to comment.