[metapost] defaultcolormodel

luigi scarso luigi.scarso at gmail.com
Fri Jul 8 13:16:07 CEST 2011


On Fri, Jul 8, 2011 at 10:15 AM, Taco Hoekwater <taco at elvenkind.com> wrote:
> On 07/08/2011 12:01 AM, Stephan Hennig wrote:
>>
>> Hi,
>>
>> I'm wondering what the meaning of variable defaultcolormodel is.  The
>> manual is rather terse (p.28):
>>
>>   The ‘current default’ color model can be set up using the internal
>>   variable defaultcolormodel.  Table 2 lists the valid values.
>>
>> Well, variable defaultcolormodel determines the colour space of the
>> black ink that is used for drawing and filling strokes, i.e., whether 0,
>> (0,0,0) or (0,0,0,1) is written into the output.
>
> Yes.
Conversion between color spaces needs a color profile.
For example (0,0,0) -> (0,0,0,1) not always is the best choice.
Generally a rgb color space is the a good choice:
practically many  monitors and cameras (hence jpeg) have the same
gamut (ie, the same color profile)
and it is  one of the wider color space also --- i.e. one can assume
that a rgb color is a real color
A cmyk is often a virtual color: you need the profile of the medium
(usually the paper) .
And the profiles *differ* each other.



-- 
luigi



More information about the metapost mailing list