kage, there are 
    options for "butt", "square", "round", and "mitre" endings.
    The example below shows "round" ends.
  </p>

    <p class="img">
      <img src="figure/render-round-ends-1.svg" width="30%">
    </p>
    <p>
    The calculation of these line ends in described in detail in
    <a href="#ends-and-joins">Murrell, 2017a</a>.
  </p>
    <h3>Loops in the offset curve</h3>
    <p>
    The offset curve on the inside of a sharp bend in the main curve
    can form loops, as shown in the example b