Skip to content

Commit

Permalink
1-pixel gap between channels.
Browse files Browse the repository at this point in the history
  • Loading branch information
PoneyClairDeLune committed Sep 20, 2023
1 parent b893bf3 commit 7dd5182
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/cambiare/index.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -191,18 +191,18 @@ let Cambiare = class extends RootDisplay {
// Draw calls
switch (upThis.style) {
case "block": {
let h = context.canvas.height;
context.fillRect(sx, 0, dx, h);
let h = context.canvas.height - 1;
context.fillRect(sx, 1, dx, h);
if (isHeld) {
context.clearRect(sx + border, border, dx - (border << 1), h - (border << 1));
context.clearRect(sx + border, border + 1, dx - (border << 1), h - (border << 1));
};
break;
};
case "comb": {
let h = isBlackKey ? Math.round((context.canvas.height << 1) / 3) : context.canvas.height;
context.fillRect(sx, 0, dx, h);
let h = (isBlackKey ? Math.round((context.canvas.height << 1) / 3) : context.canvas.height) - 1;
context.fillRect(sx, 1, dx, h);
if (isHeld) {
context.clearRect(sx + border, border, dx - (border << 1), h - (border << 1));
context.clearRect(sx + border, border + 1, dx - (border << 1), h - (border << 1));
};
break;
};
Expand Down

0 comments on commit 7dd5182

Please sign in to comment.