lilypond-user
[Top][All Lists]
Advanced

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

Re: Semi-transparent color in Lilypond


From: Thomas Morley
Subject: Re: Semi-transparent color in Lilypond
Date: Sun, 26 Jan 2014 06:41:14 +0100

2014-01-26 Rupert <address@hidden>:
> Hi all,
>
> Is there a way to color objects semi-transparently in Lilypond?
> Perhaps one could use an rgba color
> instead of #red in the following example?
>
> \markup {
>   \with-color #red
>   \filled-box #'(-1 . 2) #'(1 . 4) #0.5
> }
>
> Many thanks
> Rupert


Hi,

\with-color can use rgb-colors:

\markup {
  \with-color #(rgb-color 1.0 0.5 0.1)
  \filled-box #'(-1 . 2) #'(1 . 4) #0.5
}

Is it what you're looking for?


Cheers,
  Harm



reply via email to

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