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 filled, the subpath is closed automatically and drawn to the <canvas> using the current fill style.