ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* MPcolor problem (CMYK)
@ 2005-08-10 14:13 Jin-Hwan Cho
  2005-08-10 16:18 ` Vit Zyka
                   ` (2 more replies)
  0 siblings, 3 replies; 10+ messages in thread
From: Jin-Hwan Cho @ 2005-08-10 14:13 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 545 bytes --]

In the MetaFun manual (metafun-p.pdf) p.117, you may see an example
using the color ".5\MPcolor{cmyyellow}". But I could not generate
the color. Could anyone check the attached sample?

Best, ChoF.
~~~~~~~~~~~~~~~~~~~~~~~~~   ***
| Cho, Jin-Hwan == ChoF |   ^ ^
~~~~~~~~~~~~~~~~~~~~~~~~~~~  o
| Dept. of Mathematics    | ---
| The University of Suwon |  |
~~~~~~~~~~~~~~~~~~~~~~~~~~~  |
| Korean TeX Users Group  |  |
| http://www.ktug.or.kr   |  |
~~~~~~~~~~~~~~~~~~~~~~~~~~~  |
| chofchof@ktug.or.kr |     ***
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~


[-- Attachment #2: ch35.tex --]
[-- Type: application/octet-stream, Size: 1047 bytes --]

% Chapter 3. Embedded graphics
%
% 3.5 Communicating color
\setupcolors [state=start]
\setupinteraction [state=start]

\starttext

  \definecolor[cmyyellow][y=1]
  \definecolor[rgbyellow][r=1,g=1]

  \definecolor[cmydarkyellow][y=.625] 
  \definecolor[rgbdarkyellow][r=.625,g=.625]

  \startuseMPgraphic{All kinds of yellow}
    pickup pencircle scaled 1mm ;
    path p ; p := unitsquare xscaled 3cm yscaled 1cm ;
    fill p shifted (0cm,0cm) withcolor yellow ;
    fill p shifted (4cm,0cm) withcolor (1,1,0) ;
    fill p shifted (8cm,0cm) withcolor (.5,.5,0) ;
    fill p shifted (0cm,-1.5cm) withcolor \MPcolor{rgbyellow} ;
    fill p shifted (4cm,-1.5cm) withcolor \MPcolor{rgbdarkyellow} ;
    fill p shifted (8cm,-1.5cm) withcolor .5\MPcolor{rgbyellow} ;
    fill p shifted (0cm,-3cm) withcolor \MPcolor{cmyyellow} ;
    fill p shifted (4cm,-3cm) withcolor \MPcolor{cmydarkyellow} ;
    fill p shifted (8cm,-3cm) withcolor .5\MPcolor{cmyyellow} ; % do not work correctly!
  \stopuseMPgraphic

  \useMPgraphic{All kinds of yellow}

\stoptext


[-- Attachment #3: Type: text/plain, Size: 139 bytes --]

_______________________________________________
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2005-08-11  8:37 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-08-10 14:13 MPcolor problem (CMYK) Jin-Hwan Cho
2005-08-10 16:18 ` Vit Zyka
2005-08-10 16:27   ` Taco Hoekwater
2005-08-10 20:29     ` Mojca Miklavec
2005-08-10 20:44       ` Hans Hagen
2005-08-11  8:37         ` Mojca Miklavec
2005-08-10 20:42     ` Hans Hagen
2005-08-10 16:49 ` Mojca Miklavec
2005-08-10 20:17   ` Hans Hagen
2005-08-10 20:39 ` Hans Hagen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).