Stroke a path

ctx.beginPath();

ctx.moveTo(, );

ctx.lineTo(, );

ctx.lineTo(, );

ctx.lineTo(, );

ctx.stroke();

The current path consists of a subpath with three straight lines. When the path is stroked, it is drawn to the <canvas> using the current stroke and line styles.