Workshop › Pool › Step 6 of 33
Every ball but the cue ball shows its number in small white text, centered on it.
```js
if (b.cue) continue
ctx.fillStyle = 'white'
ctx.font = 'bold 9px sans-serif'
ctx.textAlign = 'center'
ctx.fillText(String(b.number), b.x, b.y + 3)
```continue skips the rest of the loop body for the cue ball: no number on it.textAlign = 'center' centers the text on x; y + 3 puts the middle of the small digits near the ball's centre (text
sits on its y).String(b.number) turns the number into text.In draw, inside the ball loop, under ctx.fill(), write the five lines.
Skills: Drawing on a canvas