On Tue, Nov 4, 2014 at 3:48 AM, Urs Liska <u...@openlilylib.org> wrote:
> 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.

Try quasiquote + unquote:

#(define types
  `(("one" . ,red)
    ("two" . ,blue)))

#(display types) => ((one 1.0 0.0 0.0) (two 0.0 0.0 1.0))

-----Jay

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to