From 40ecc3345757ec4f7cfb6e73c89b16edc32cf372 Mon Sep 17 00:00:00 2001 From: Zutatensuppe Date: Sat, 17 Apr 2021 17:42:56 +0200 Subject: [PATCH] add comment --- game/PuzzleGraphics.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/game/PuzzleGraphics.js b/game/PuzzleGraphics.js index e169ae8..8953a3f 100644 --- a/game/PuzzleGraphics.js +++ b/game/PuzzleGraphics.js @@ -165,6 +165,8 @@ async function createPuzzleTileBitmaps(img, tiles, info) { ctx.stroke(path) ctx.restore() + // Draw the path (border) in the color of the + // surrounding tile, this makes the tile look more realistic // ----------------------------------------------------------- // ----------------------------------------------------------- ctx2.clearRect(0, 0, tileDrawSize, tileDrawSize)