lilypond-devel
[Top][All Lists]
Advanced

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

Re: I solved the polygon problem.


From: Han-Wen Nienhuys
Subject: Re: I solved the polygon problem.
Date: Tue, 04 Apr 2006 21:08:24 +0200
User-agent: Thunderbird 1.5 (X11/20060313)

David Feuer wrote:
Use the postscript "arct" command.  Drawing a filled polygon becomes

x0 x1 add 2 div y0 y1 add 2 div moveto
x1 y1 x2 y2 r arct
x2 y2 x3 y3 r arct
x3 y3 x4 y4 r arct
...
x(n-1) y(n-1) x0 y0 r arct
x0 y0 x1 y1 r arct
closepath
fill

where n is the number of points and r is the radius of the arc.

arct is a language level 2 feature, but it shouldn't be too hard to
emulate it in level 1 if need be (using arc).

we don't do level 1 anyway.  I think that glyphshow is L2.


--

Han-Wen Nienhuys - address@hidden - http://www.xs4all.nl/~hanwen

LilyPond Software Design
 -- Code for Music Notation
http://www.lilypond-design.com





reply via email to

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