code: def _le_circle(self, annot, p1, p2, lr):
          
          m, im, L, R, w, scol, fcol, opacity = self._le_annot_parms(annot, p1, p2)
          shift = 2.5             # 2*shift*width = length of square edge
          d = shift * max(1, w)
          M = R - (d/2., 0) if lr else L + (d/2., 0)
          r = Rect(M, M) + (-d, -d, d, d)         # the square
          ap = "q\n" + opacity + self._oval_string(r.tl * im, r.tr * im, r.br * im, r.bl * im)
          ap += "%g w\n" % w
          ap += scol + fcol + "b\nQ\n"
          return ap
docs: Make stream commands for circle line end symbol. "lr" denotes left (False) or right point.