Workshop › Memory › Step 19 of 25
The top strip shows Moves: 3, and a found pair turns light green, so you can tell it from the cards you just opened.
```js
ctx.fillStyle = 'white'
ctx.font = '18px sans-serif'
ctx.textAlign = 'left'
ctx.textBaseline = 'middle'
ctx.fillText('Moves: ' + moves, GAP, 22)
ctx.font = '44px sans-serif'
ctx.textAlign = 'center'
ctx.fillStyle = card.matched ? '#bbf7d0' : '#f8fafc'
```textBaseline set white, 18 px, left-aligned text; the line under it writes the counter at
(12, 22), in the middle of the strip.card.matched ? '#bbf7d0' : '#f8fafc' picks light green for a pair, white otherwise.draw, write the three text lines above ctx.textBaseline = 'middle', and the Moves line plus an empty line
under it.fillStyle as shown.Skills: Drawing on a canvas
← Count the moves All pairs found →