[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Numerical note head colors
From: |
David Kastrup |
Subject: |
Re: Numerical note head colors |
Date: |
Sat, 01 Jun 2019 22:15:15 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
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