fill the canvas line with every 20 px code example Example: javascript canvas 1px line ctx.moveTo(50,150.5); ctx.lineTo(150,150.5);