[Top][All Lists]

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

rfc: basic color support

From: Han-Wen Nienhuys
Subject: rfc: basic color support
Date: Thu, 17 Feb 2005 02:13:54 +0100

address@hidden writes:
> Hello all,
> Just for fun, I've hacked up a patch that provides basic color support
> (only in the ps backend).
> Why color:
> Sometimes when I teach music, I find colors to be helpful ("today
> we're gonna learn a new note: the f note. All the red notes in this
> piece are f's").
> Short description of the patch:
> scm/define-grob-properties.scm: introduce the color property
> scm/output-ps.scm: {set,reset}color commands.
> lily/ (interpret_stencil_expression): when a "colored
> expression" is encountered: save current color, process the
> expression, restore color.
> lily/ (get_line): check all grobs for color property and
> prepare the stencil scheme expressions for further processing in
> interpret_stencil_expression().
> NB: This patch is just a request for comments. Use it like this:
> \override <grob> #'color = #'(1.0 0.0 0.0)
> The scheme list is an RGB color. Values must be between 0.0 and 1.0.

* I'd almost be tempted to either make a smob, or use a vector.

* don't forget about the svg and tex  backends.

* implementation seems fine.


 Han-Wen Nienhuys   |   address@hidden   | 

reply via email to

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