[metapost] MP docs

Taco Hoekwater taco at elvenkind.com
Fri May 18 17:16:35 CEST 2007

Hans Hagen wrote:
> Taco Hoekwater wrote:
>> Hans Hagen wrote:
>>>> The user-friendly solution were to have 'black' and 'white' behave 
>>>> as an
>>>> rgbcolor /or/ cmykcolor depending on the context, but I don't know if
>>>> that is possible in MetaPost.
>> No, but it could be a greyscale, as Hans proposed. But I am not sure
>> that that is a good idea. The whole point of also having greyscale
>> and CMYK color models is to have more control over color conversions.
> gray conversion?
> a rip translates the 4th component to a b/w plate anyway and does the 
> same with a gray scale
>> grey levels are bare numerics, yes. It seemed silly and over-complicated
>> to introduce a <type> for a <single value>.
> hm, but withcolor <numeric> does not work so one cannot use greyscales 
> as one used rgb/cmyk which is inconsistent and more silly

But that does work.

   fill unitsquare scaled 100 withcolor .5;

is fine. I assume you have it confused with something else.

Best wishes, Taco

More information about the metapost mailing list