[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/stencil.cc (interpret_stencil_expression): when a "colored
> expression" is encountered: save current color, process the
> expression, restore color.
> lily/system.cc (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 | http://www.xs4all.nl/~hanwen
- rfc: basic color support, Erlend Aasland, 2005/02/16
- rfc: basic color support,
Han-Wen Nienhuys <=
- Re: rfc: basic color support, Erlend Aasland, 2005/02/17
- Re: rfc: basic color support, Juergen Reuter, 2005/02/17
- Re: rfc: basic color support, Erlend Aasland, 2005/02/17
- Re: rfc: basic color support, Han-Wen Nienhuys, 2005/02/17
- Re: rfc: basic color support, Erlend Aasland, 2005/02/17
- Re: rfc: basic color support, Han-Wen Nienhuys, 2005/02/18
- Re: rfc: basic color support, Erlend Aasland, 2005/02/18
- Re: rfc: basic color support, Han-Wen Nienhuys, 2005/02/18
- Re: rfc: basic color support, Han-Wen Nienhuys, 2005/02/17
- Re: rfc: basic color support, Erlend Aasland, 2005/02/17