|
From: | Thomas Morley |
Subject: | Re: drawing curves in markup (was: draw-line) |
Date: | Tue, 17 Mar 2015 22:21:12 +0100 |
Just as a follow up to Stephen's question: for analytic examples I have to draw curved lines all the time, usually with arrow-heads attached at the end, so I made a function to do it given just the coordinates of the desired destination. Using curveto is very slow because of all the trial and error with control points, and if you do this often it becomes draining (rather like fixing slurs before the awesome \shape function was introduced).The code with some examples is at the end of this mail. If I knew more about mathematics I might know how to calculate the tangent to a bezier curve at the end point (to know how much to rotate the arrowhead) and the function wouldn't be such a hack.
arrow-slur-02.ly
Description: Text Data
[Prev in Thread] | Current Thread | [Next in Thread] |