Workshop › Battleship › Step 17 of 35
Hits on a sunk ship are drawn dark red, so you can tell at a glance which hits still need following up.
```js
const ship = shot === 'hit' && shipAt(fleet, r, c)
ctx.fillStyle = shot === 'miss' ? '#e2e8f0' : ship && sunk(ship) ? '#7f1d1d' : '#ef4444'
```ship is the ship on that square; for a miss it is false.In drawSea, replace the dot's fillStyle line with the two new lines.
Skills: Drawing on a canvas
← Sinking ships Outline sunk ships →