[metapost] CMYK is beautifull

Hans Hagen pragma at wxs.nl
Sat Dec 16 21:24:21 CET 2006


L. Nobre G. wrote:
> Hi all,
>
> FeatPost uses "color"s as positions in 3D-space,
> now guess what can be done with both "cmykcolor"s and "filenametemplate"...
>
> The latest MetaPost version runs the following code:
> -----------------------------------------------------------------------------------
> filenametemplate "%j%4c.eps";
> beginfig(1);
>   cmykcolor b, c, d;
>   b = (1,1,1,1);
>   c = (0,0,0,4000);
>   if cmykcolor c:
>     message "c is a cmykcolor";
>   fi;
>   message "b=";
>   show b;
>   message "c=";
>   show c;
>   d = 0.5[c,b];
>   message "d is the average of c and b";
>   show d;
>   message "the magenta part of d:";
>   show magentapart d;
> endfig;
> end.
> -----------------------------------------------------------------------------------
>   
however ... since printing in cmyk can be rather tricky (even the order 
of applying inks while printing matters) in practice one will seldom do 
such things in real high end publishing ... esp the black component is 
used to get colors 'right' (c+m+k <> black in print, but brownish)

Hans  

-- 

-----------------------------------------------------------------
                                          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