bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: feature req: dashed slur with tapered ends


From: Carl D. Sorensen
Subject: Re: feature req: dashed slur with tapered ends
Date: Tue, 14 Apr 2009 12:37:36 -0600



On 4/13/09 11:16 PM, "Mark Polesky" <address@hidden> wrote:

> 
> 
> Here's an idea:
> 
> Figure out the path that runs along the outside of
> a bezier sandwich. Find the max-thickness of that
> path. Set that path as the clipping path. Draw a
> dashed-slur (with thickness set to max-thickness)
> that is clipped to within the sandwich's outside
> path. I wonder if that might look good enough. The
> corners of the dashes would not be perfectly smooth,
> but the tapering would be right. The tricky part is
> figuring out the outside path and the max-thickness.
> But it ought to be do-able.
> 


Actually, the correct way to do it is to draw the dashed slur as a series of
bezier sandwiches (and that's why the bezier sandwich code has the lineto
command in it).  We don't need to have the same points at the end of the top
and bottom beziers; they can differ.

The trick is to take the top and bottom beziers and subdivide them.

I'm currently working on a patch for this.

Carl





reply via email to

[Prev in Thread] Current Thread [Next in Thread]