DescriptionNew function css-color (accompanying x11-color)
I was asked if LilyPond could support choosing colors by their CSS name,
which I found a reasonable wish.
This commit makes make-x11-color-handler generic and specifies
a new function css-color. From this it would be easy to also add further
namespaces and color lists.
CSS colors are case insensitive, so this commit also provides support for
this. Incidentally, a warning is now issued when the requested color is
not defined (instead of *silently* falling back to black).
Only warn about missing color when necessary
Merge pull request #6 from rettinghaus/dev/urs/css-fonts
add named colors from CSS Color Module Level 4
Rename x11-color.scm to color.scm
With the previous commit adding `css-color` the file `x11-color.scm` should be
rename to the generic `color.scm`.
add named colors from CSS Color Module Level 4
Define function css-color (accompany x11-color)
It should be possible to specify colors using the CSS names in addition to
the X11 names.
This commit makes `make-x11-color-handler` generic and adds a function
`css-color`.
What remains to be done is (of course documenting and) filling in the remaining
~140 colors.
Patch Set 1 #
Total comments: 1
MessagesTotal messages: 2
|