[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #66458] [PATCH] [pic] Add support for drawing arbitrary polygons
From: |
dlosin |
Subject: |
[bug #66458] [PATCH] [pic] Add support for drawing arbitrary polygons |
Date: |
Thu, 19 Dec 2024 14:57:16 -0500 (EST) |
Follow-up Comment #5, bug #66458 (group groff):
> Ted Harding also once brainstormed a more ambitions extension, for
> drawing and filling shapes that combine lines and curves.
> http://lists.gnu.org/r/groff/2010-04/msg00023.html
This would be a nice addition for the future, but would involve updates to
Groff as well as pic. Neatroff has actually tackled the Groff side of this
already by including options in the drawing command for an edge to be an arc,
spline, etc.
Filled drawing objects
Neatroff supports Groff-style polygons and filled drawing objects (p, C, E
and
P commands for \D escape sequence). In Neatroff, however, there is no spe-
cific background colour; objects are filled with the current colour (.m
number
register). Furthermore, in Neatroff the edges of polygons can be lines, arcs,
or splines; a letter among the arguments of \D’p ..’ specifies the type of
the
subsequent edges: ‘l’, ‘a’, and ‘~’ for lines, arcs, and splines
respectively
Ted Harding also mentioned in that post the option to rotate any object, which
I agree would be quite useful. If I recall correctly, polygons are built from
the endpoints of lines. I don't think it would be exceedingly difficult to add
an option to apply a rotation matrix to the polygon before it is drawn. This
would be very useful for blocks too. That said I haven't thought about it all
that much, and there are probably other complications. Circuit_macros has a
similar method for rotating objects, granted it's built on top of pic rather
than built into it.
https://ece.uwaterloo.ca/~aplevich/Circuit_macros/
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?66458>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
Message not available
Message not available