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: Federico Bruni
Subject: Re: invert the colors (to print white score on black paper)
Date: Wed, 27 Nov 2013 10:09:21 +0100


Il 25/nov/2013 22:33 "ryanmichaelmcclure" <address@hidden> ha scritto:
>
> 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
>  }
> }

Thanks, it works fine. Even if I can't make it work in my file, which has two voices stored in two variables.
Anyway, I needed it to print a score on a t-shirt, but my friends eventually decided printing black on white.


reply via email to

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