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: Rupert Snook
Subject: Re: Semi-transparent color in Lilypond
Date: Mon, 27 Jan 2014 22:00:14 +1300

Thanks Patrick and Harm for the suggestions! These could work as workarounds, but still not exactly what I'm after. I'm looking for a color that has an opacity / transparency channel, and this channel could be set between 0% (fully transparent) and 100% (fully opaque). 

If that's not possible, maybe a work around could be to import a pre made graphic that was already semi-opaque.


On Sun, Jan 26, 2014 at 10:07 PM, pls <address@hidden> wrote:
On 26.01.2014, at 06:41, Thomas Morley <address@hidden> wrote:

> 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?
There's at least a workaround in the lsr to give the illusion of a background color: http://lsr.dsi.unimi.it/LSR/Snippet?id=699.

hth
patrick
>>
>> \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
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> https://lists.gnu.org/mailman/listinfo/lilypond-user



reply via email to

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