[Therion] Metapost for a line ending in an ellipse
Martin Budaj
m.budaj at gmail.com
Sun Nov 24 13:48:02 CET 2019
On Fri, Nov 22, 2019 at 8:56 PM Tarquin Wilton-Jones via Therion
<therion at speleo.sk> wrote:
> In Therion's Metapost, the line is easy;
> pickup PenC;
> thdraw P;
>
> Drawing a horizontal ellipse at the coordinates of the last point in the
> line is easy:
> p:=fullcircle xscaled (.5u) yscaled (.25u);
> draw p shifted (point (length P) of P);
>
> But making the last "leg" of the line stop at the point where it
> intersects the ellipse ... I am baffled.
Hi,
instead of "thdraw P;" use "thdraw P cutafter p;" after defining both
paths P and p.
Martin
More information about the Therion
mailing list