Workshop › Rhythm Lanes › Step 4 of 35
Near the bottom, each lane gets a colored bar: the hit line. The four colors are kept in an array, one per lane.
```js
const HIT_Y = 480 // where a note should be when you press
const COLORS = ['#f43f5e', '#f59e0b', '#22c55e', '#3b82f6']
ctx.fillRect(x + 2, 0, LANE_W - 4, canvas.height)
ctx.fillStyle = COLORS[lane]
ctx.fillRect(x + 6, HIT_Y - 4, LANE_W - 12, 8)
}
```HIT_Y is the height of the hit line, 480 pixels from the top.COLORS is an array; COLORS[lane] is the color at that position, counting from 0.HIT_Y (HIT_Y - 4), 6 pixels in from the lane's sides.LEFT line write HIT_Y and COLORS.fillRect, write the two bar lines.Skills: Arrays and objects
← Four lanes with a loop A function that draws →