lilypond-user
[Top][All Lists]
Advanced

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

Re: invert the colors (to print white score on black paper)


From: ryanmichaelmcclure
Subject: Re: invert the colors (to print white score on black paper)
Date: Mon, 25 Nov 2013 13:33:41 -0800 (PST)

Give this a try. I used some snippets in the LSR to apply a giant markup
black background and changed everything to white.

\version "2.17.29"

#(define (override-color-for-all-grobs color)
  (lambda (context)
   (let loop ((x all-grob-descriptions))
    (if (not (null? x))
     (let ((grob-name (caar x)))
      (ly:context-pushpop-property context grob-name 'color color)
      (loop (cdr x)))))))

\relative c'' {
  \applyContext #(override-color-for-all-grobs (x11-color 'white))
  c4\pp\< d e f
  \grace { g16[( a g fis]) } g1\ff\!
 % place in bottom layer
 -\tweak #'layer #-1
 -\markup {
   \with-dimensions #'(0 . 0) #'(0 . 0)
   % specify color
   \with-color #(rgb-color 0 0 0)
   % specify size
   \filled-box #'(-1000 . 1000) #'(-1000 . 4000) #0
 }
}



-----
Ryan McClure

Luna Music Engraving
www.lunamusicengraving.com
--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/invert-the-colors-to-print-white-score-on-black-paper-tp154404p154405.html
Sent from the User mailing list archive at Nabble.com.



reply via email to

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