Workshop › Conway's Game of Life › Step 13 of 32
We write the counter in the strip above the grid: Generation 4.
```js
ctx.fillStyle = 'white'
ctx.font = 'bold 16px sans-serif'
ctx.textAlign = 'left'
ctx.fillText('Generation ' + generation, 8, 24)
}
```ctx.font picks the size and style, textAlign = 'left' puts the text's left end at x.fillText(text, x, y) paints the text; y is the line the letters sit on.'Generation ' + generation joins a text and a number: 'Generation 4'.At the end of draw, after the loops and before its last }, leave an empty line and write the four lines.
Skills: Drawing on a canvas
← Count the generations A world without edges →