Workshop › Simon Says Colors › Step 10 of 27
In the top strip we write the round number: Round 1, Round 2... The round is the length of the sequence.
```js
ctx.fillStyle = 'white'
ctx.font = 'bold 18px sans-serif'
ctx.textAlign = 'left'
ctx.fillText('Round ' + sequence.length, 10, 27)
}
```ctx.font sets the size and style; textAlign = 'left' makes x the left edge of the text.'Round ' + sequence.length glues text and a number: 'Round 1'.fillText(text, 10, 27) writes it 10 pixels from the left, in the strip.In draw, after the forEach block's }), leave an empty line and write the four lines, above the function's last }.
Skills: Drawing on a canvas
← The sequence to remember Light a pad for a while →