lilypond-devel
[Top][All Lists]
Advanced

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

Re: cap in path routine


From: josé henrique padovani
Subject: Re: cap in path routine
Date: Sun, 06 Jun 2010 18:21:10 -0300
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; pt-BR; rv:1.9.1.9) Gecko/20100317 Thunderbird/3.0.4

Em 06/06/10 16:40, josé henrique padovani escreveu:

well.. I think that would be good to preserve the ps-like words (simply to avoid confusion between svg and
ps syntaxes)

It would be nice to add both "setlinecap" and "setlinejoin" to the 'path defs...
They could be added as optional arguments (not sure about the guile syntax as I am more

(use-modules (ice-9 optargs)) ;; is this module already loaded by LilyPond?
(define* (path thickness exps #:optional cap join )

 ...)

or, using keywords (more elegant?)... and then if linecap or linejoin are not supplied
by the user they can have their actual default values... (maybe path could be extendend in this way?)

(use-modules (ice-9 optargs)) ;; is this module already loaded by LilyPond?
(define my-proc (lambda* (thickness exps #&key linecap linejoin)

....
What do you think?
one more thing came on my mind:
it would be useful to be able to set another optional variable to 'fill or 'stroke!

josé
-- 
http://zepadovani.info

reply via email to

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