ctx.lineTo(100, 120);
    ctx.stroke();

    // Square cap, zero length path
    ctx.beginPath();
    ctx.moveTo(120, 120);
    ctx.lineTo(120, 120);
    ctx.stroke();

    // Open path
    ctx.lineCap = "butt";
    ctx.beginPath();
    ctx.moveTo(150, 50);
    ctx.lineTo(250, 50);
    ctx.lineTo(200, 100);
    ctx.lineTo(150, 50);
    ctx.stroke();

    // Closed path with round lineJoin
    ctx.lineCap = "butt";
    ctx.lineJoin = "round";
    ctx.beginPath();
    ctx.moveTo(300, 50);
    ctx.lineTo(350, 