lilypond-user
[Top][All Lists]
Advanced

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

Re: Numerical note head colors


From: Jacques Menu
Subject: Re: Numerical note head colors
Date: Sun, 2 Jun 2019 00:03:18 +0200

Hello David,

It does do the trick, thanks!

JM

> Le 1 juin 2019 à 22:15, David Kastrup <address@hidden> a écrit :
> 
> Jacques Menu <address@hidden> writes:
> 
>> Hello,
>> 
>> MusicXML allows node head colors such as <note color='#FFAC01E3’>.
>> 
>> Is there a way to use such a hexadecimal value in LilyPond, or a way
>> to map it to one of the colors names known to LP?
>> 
>> Thanks for your help!
> 
> We don't do transparency, but a list containing three numbers between 0
> and 1 is interpreted as an RGB value, so something like
> 
> #(map (lambda (x) (/ x 255)) '(#XAC #X01 #XE3))
> 
> should do the trick.
> 
> -- 
> David Kastrup




reply via email to

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