Workshop › Rhythm Lanes › Step 31 of 35
When the song is done, a panel shows the grade in big letters, the accuracy and the three counts.
```js
if (state === 'done') {
ctx.fillStyle = 'rgba(15, 23, 42, 0.9)'
ctx.fillRect(40, 170, canvas.width - 80, 170)
ctx.fillStyle = 'white'
ctx.textAlign = 'center'
ctx.font = 'bold 48px sans-serif'
ctx.fillText(grade(), canvas.width / 2, 228)
ctx.font = '16px sans-serif'
ctx.fillText(accuracy() + '% accurate', canvas.width / 2, 262)
ctx.fillText(judged.perfect + ' perfect, ' + judged.good + ' good, ' + judged.miss + ' missed', canvas.width / 2, 288)
ctx.fillText('Space to play again', canvas.width / 2, 318)
}
```state === 'done', last, so it covers everything else.rgba(15, 23, 42, 0.9) is the dark background color at 90% opacity.In draw, under the Combo line, write the if (state === 'done') block.
Skills: Drawing on a canvas