From ab8a72f77d76a849599175bec6cdecadc6d8a452 Mon Sep 17 00:00:00 2001 From: JirCep <uzivatel919@seznam.cz> Date: Tue, 8 Aug 2023 22:52:44 +0200 Subject: [PATCH] fillRect draws without path --- src/game-of-life/implementing.md | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/game-of-life/implementing.md b/src/game-of-life/implementing.md index 61597314..c834e1ff 100644 --- a/src/game-of-life/implementing.md +++ b/src/game-of-life/implementing.md @@ -527,8 +527,6 @@ const drawCells = () => { const cellsPtr = universe.cells(); const cells = new Uint8Array(memory.buffer, cellsPtr, width * height); - ctx.beginPath(); - for (let row = 0; row < height; row++) { for (let col = 0; col < width; col++) { const idx = getIndex(row, col); @@ -545,8 +543,6 @@ const drawCells = () => { ); } } - - ctx.stroke(); }; ```