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