[metapost] background and non-rgbcolors

Hans Hagen pragma at wxs.nl
Sun May 20 22:48:38 CEST 2007

Stephan Hennig wrote:
> Hi,
> the internal variable background seems only to accept rgbcolor values
> (which is not documented).  Would it be possible to make 'background'
> accept cmykcolor or greyscale values as well?
background is not really supported (contrary to mf)
> Another option were to introduce a new macro 'setUnfillColor' that
> accepts different colour types and is evaluated by 'unfill'.  For
> compatibility 'background' should take precedence over 'setUnfillColor',
> by default.  As soon as 'setUnfillColor' has been called with a valid
> colour it should overrule 'background'.  Calling 'unfillcolor' with a
> special value (e.g., any string value) should return 'unfill' to
> compatibility behaviour, i.e., evaluate variable 'background' only.
afaik something unfill is on the agenda but more like the postscript 
feature (i.e. eofill


                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl

More information about the metapost mailing list