Workshop › Sokoban › Step 3 of 29
Our first drawing: the whole canvas gets a very dark brown, the floor of the warehouse.
```js
ctx.fillStyle = '#1c1917'
ctx.fillRect(0, 0, canvas.width, canvas.height)
```ctx.fillStyle = '#1c1917' picks the fill color.ctx.fillRect(x, y, width, height) fills a rectangle. 0, 0 is the top-left corner; canvas.width and
canvas.height (480 and 520) make it cover everything.At the very end, leave an empty line and write the two lines. Press Run.
Skills: Drawing on a canvas
← The canvas and the pen A function that draws →