rustwasm / book

The Rust and WebAssembly Book
https://rustwasm.github.io/docs/book/
MIT License
1.75k stars 211 forks source link

Make drawGrid/drawCells order the same everywhere #104

Closed vmedea closed 6 years ago

vmedea commented 6 years ago

In implementing.md, drawGrid/drawCells is reversed compared to all other cases throughout the tutorial. This results in slightly different rendering when interacting—the lines will be slimmer when drawing the cells after the grid—if you forget to change this order in the render loop later on.

grid1 grid2

vmedea commented 6 years ago

okay ! updated, now it first draws the grid, then the cells everywhere:

src/game-of-life/implementing.md:  drawGrid();
src/game-of-life/implementing.md-  drawCells();
--
src/game-of-life/interactivity.md:  drawGrid();
src/game-of-life/interactivity.md-  drawCells();
--
src/game-of-life/interactivity.md:  drawGrid();
src/game-of-life/interactivity.md-  drawCells();
--
src/game-of-life/time-profiling.md:    drawGrid();
src/game-of-life/time-profiling.md-    drawCells();