Re: geometric primitives (was: interviews with groff developers)

2023-08-08 Thread Douglas McIlroy
>From the user's perspective, I think simplest would be if "line" took a "fill" attribute subject to the constraint that the line ends where it begins, something pic can enforce. In that case, it would draw a solid polygon instead of a sequence of lines. I once looked into the code to see if that

Re: geometric primitives (was: interviews with groff developers)

2023-08-07 Thread James K. Lowden
On Mon, 7 Aug 2023 10:44:44 -0500 "G. Branden Robinson" wrote: > But groff does support "boxes", if you will. Cunnigham's Law strikes again! > \D'p h1 v1 ... hn vn' > Draw polygon with vertices at drawing position and each > point in sequence. GNU troff closes the polygon by

geometric primitives (was: interviews with groff developers)

2023-08-07 Thread G. Branden Robinson
At 2023-08-07T04:55:56-0400, James K. Lowden wrote: > On Sat, 5 Aug 2023 21:52:26 -0400 > Douglas McIlroy wrote: > > > I can edit the content of figures, which I believe is impossible in > > PDF. One use of this capability is to overcome a > > deficiency in pic: filling polygons. > > I'm surpri