lilypond-user
[Top][All Lists]
Advanced

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

Re: Two questions regarding line-cap-style


From: Kieren MacMillan
Subject: Re: Two questions regarding line-cap-style
Date: Wed, 8 Mar 2017 07:53:35 -0500

Hi Urs,

Someone gave me this:

#(define-markup-command (path-draw-line layout props dest) (pair?)
  #:category graphic
  #:properties ((line-cap-style 'round)
                (thickness 1))
  (interpret-markup layout props
    (markup
     #:override `(line-cap-style . ,line-cap-style)
     #:path thickness `((moveto 0 0)
                        (lineto ,(car dest) ,(cdr dest))))))

It works (with ‘square override) in a markup — perhaps you can adapt it for 
your needs?

Hope this helps!
Kieren.
________________________________

Kieren MacMillan, composer
‣ website: www.kierenmacmillan.info
‣ email: address@hidden




reply via email to

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