lilypond-user
[Top][All Lists]
Advanced

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

Re: Colors in alists


From: Urs Liska
Subject: Re: Colors in alists
Date: Tue, 04 Nov 2014 12:18:33 +0100
User-agent: K-9 Mail for Android


Am 4. November 2014 12:01:22 MEZ, schrieb Marc Hohl <address@hidden>:
>Am 04.11.2014 um 11:48 schrieb Urs Liska:
>> I want to store colors in an alist like
>>
>> #(define types
>> '(("one" . "red")
>> ("two" . "blue")))
>>
>> I can retrieve and display the values with assoc-ref but I don't know
>> how to turn the returned string into a color to be used in an
>override.
>
>Untested: maybe you store the color as a symbol, or use string->symbol?

Unfortunately not.
Type check for `color' failed; value `(quote darkgreen)' must be of type `color'

Urs

>
>Marc
>>
>> Any help appreciated.
>> Urd
>>
>>
>> _______________________________________________
>> lilypond-user mailing list
>> address@hidden
>> https://lists.gnu.org/mailman/listinfo/lilypond-user
>>
>
>
>_______________________________________________
>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]