From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/29552 Path: news.gmane.org!not-for-mail From: Renaud AUBIN Newsgroups: gmane.comp.tex.context Subject: ConTeXt and cmyk Date: Fri, 21 Jul 2006 09:13:08 +0200 Message-ID: <44C07E84.7090806@nibua-r.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="------------080101030307000508020200" X-Trace: sea.gmane.org 1153466025 15486 80.91.229.2 (21 Jul 2006 07:13:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 21 Jul 2006 07:13:45 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Fri Jul 21 09:13:43 2006 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1G3pCg-00017x-Ed for gctc-ntg-context-518@m.gmane.org; Fri, 21 Jul 2006 09:13:42 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 527391279A; Fri, 21 Jul 2006 09:13:42 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 03115-02-3; Fri, 21 Jul 2006 09:13:34 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id C90D6127B0; Fri, 21 Jul 2006 09:13:31 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 2E237127B0 for ; Fri, 21 Jul 2006 09:13:25 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 03115-02-2 for ; Fri, 21 Jul 2006 09:13:18 +0200 (CEST) Original-Received: from 42.mail-out.ovh.net (42.mail-out.ovh.net [213.251.189.42]) by ronja.ntg.nl (Postfix) with SMTP id BB9471279A for ; Fri, 21 Jul 2006 09:13:17 +0200 (CEST) Original-Received: (qmail 8066 invoked by uid 503); 21 Jul 2006 07:13:12 -0000 Original-Received: from b6.ovh.net (HELO mail182.ha.ovh.net) (213.186.33.56) by 42.mail-out.ovh.net with SMTP; 21 Jul 2006 07:13:12 -0000 Original-Received: from b0.ovh.net (HELO queue-out) (213.186.33.50) by b0.ovh.net with SMTP; 21 Jul 2006 07:13:19 -0000 Original-Received: from d80-170-33-41.cust.tele2.fr (HELO ?192.168.78.10?) (aubin@nibua-r.org@80.170.33.41) by ns0.ovh.net with SMTP; 21 Jul 2006 07:13:17 -0000 User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051017) X-Accept-Language: fr, en Original-To: ConTeXt Mailing List X-Ovh-Remote: 80.170.33.41 (d80-170-33-41.cust.tele2.fr) X-Ovh-Local: 213.186.33.20 (ns0.ovh.net) X-Spam-Check: DONE|H 0.5/0.5/5.0/N X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.7 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:29552 Archived-At: This is a multi-part message in MIME format. --------------080101030307000508020200 Content-Type: multipart/alternative; boundary="------------010101000807060605000108" --------------010101000807060605000108 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi all, I have reproduced a logo http://www.uvsq.fr/guide/charte/index.html (see attachment for the resulting metapost code). What's the best method to define colors according to this web page ? My understanding is: - for printing, the use of \setupcolors[cmyk=yes,mpcmyk=no,conversion=no] is the best, - for display rendering, the use of \setupcolors[cmyk=yes,mpcmyk=yes,conversion=yes] is the best. Am I right ? Renaud --------------010101000807060605000108 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Hi all,

I have reproduced a logo http://www.uvsq.fr/guide/charte/index.html (see attachment for the resulting metapost code).
What's the best method to define colors according to this web page ?
My understanding is:
- for printing, the use of \setupcolors[cmyk=yes,mpcmyk=no,conversion=no] is the best,
- for display rendering, the use of \setupcolors[cmyk=yes,mpcmyk=yes,conversion=yes] is the best.

Am I right ?

Renaud


--------------010101000807060605000108-- --------------080101030307000508020200 Content-Type: text/x-tex; name="logouvsq_mp.tex" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="logouvsq_mp.tex" %D %D file=logouvsq_mp, %D version=2006.07.20, %D title=UVSQ logo, %D author=Renaud Aubin, %D copyright=Public Domain %C %C Donated to the public domain. \setupcolors[state=start] \setupcolors[cmyk=yes,mpcmyk=no,conversion=no] %% printer %\setupcolors[cmyk=yes,mpcmyk=no,conversion=yes] %% printer %\setupcolors[cmyk=yes,mpcmyk=yes,conversion=no] %% display %\setupcolors[cmyk=yes,mpcmyk=yes,conversion=yes] %% display % cmyk definitions \definecolor[uvsqdarkgreen][c=.1,m=.0,y=.45,k=.4] \definecolor[uvsqgreen][c=.76,m=.0,y=.91,k=.0] \definecolor[uvsqblue][c=.87,m=.18,y=.0,k=.0] \starttext \startbuffer[uvsqlogo] numeric u; u:= 1mm; % width & height numeric w; w:=85.8u; numeric h; h:=51.2u; % explicit ? ;) path mainframe; mainframe:= (-.5w,-.5h)--(.5w,-.5h)--(.5w,.5h)--(-.5w,.5h)--cycle; % blue line properties numeric bluew; bluew:=.075h; % green curve properties numeric greenw; greenw:=.072h; pair pts[]; pts[0] := (-.2625w,-.342h); pts[1] := (-.305w,-.085h); pts[2] := (-.13w,-.085h); pts[3] := (-.025w,.2h); pts[4] := (.01w,-.12h); pts[5] := (.08w,-.11h); pts[6] := (.123w,-.188h); pts[7] := (.2625w,-.085h); pts[8] := (.2625w,-.342h); % sun properties pair suncenter; suncenter := (-.184w,.125h); pair raycenter; raycenter := (-.184w,.13h); numeric sunradius; sunradius := 19.5u; numeric sunw; sunw:=.7u; % the blue bottom line interim linecap:=squared; drawoptions(withpen pencircle scaled bluew withcolor \MPcolor{uvsqblue}); draw (-.5w+.0375h,-.4625h)--(.5w-.0375h,-.4625h); % sunrays drawoptions(withpen pencircle scaled sunw withcolor \MPcolor{uvsqdarkgreen}); for i=-5 upto 12: draw ((origin--(0,2h)) rotated (11.25i)) shifted raycenter; endfor; draw ((origin--(0,2h)) rotated (-65)) shifted raycenter; draw ((origin--(0,2h)) rotated (-72)) shifted raycenter; draw ((origin--(0,2h)) rotated (-80)) shifted raycenter; draw ((origin--(0,2h)) rotated (-87)) shifted raycenter; draw ((origin--(0,2h)) rotated (-95)) shifted raycenter; draw ((origin--(0,2h)) rotated (-102)) shifted raycenter; % white circle drawoptions(withpen pencircle scaled 0u withcolor white); fill fullcircle scaled sunradius shifted suncenter; % sun drawoptions(withpen pencircle scaled sunw withcolor \MPcolor{uvsqdarkgreen}); draw fullcircle scaled sunradius shifted suncenter; % white circle drawoptions(withpen pencircle scaled 0u withcolor white); fill fullcircle scaled 30 shifted (-.05w,.03h); % white curves ? ;) interim linecap:=squared; drawoptions(withpen pencircle scaled 2.5greenw withcolor white); draw (-.5w+.036h,-.332h)--(xpart pts[0]-.036h, -.332h); draw (.5w-.036h,-.332h)--(xpart pts[8]+.036h, -.332h); interim linecap:=butt; for i=0 upto 3: draw pts[2i]..pts[2i+1]..pts[2i+2]; endfor; % the green curve interim linecap:=squared; drawoptions(withpen pencircle scaled greenw withcolor \MPcolor{uvsqgreen}); draw (-.5w+.036h,-.342h)--(xpart pts[0]-.036h, ypart pts[0]); draw (.5w-.036h,-.342h)--(xpart pts[8]+.036h, ypart pts[8]); interim linecap:=rounded; for i=0 upto 3: draw pts[2i]..pts[2i+1]..pts[2i+2]; endfor; setbounds currentpicture to mainframe; clip currentpicture to mainframe; \stopbuffer %% end of buffer[uvsqlogo] \placefigure[here]{none}{\processMPbuffer[uvsqlogo]} \stoptext --------------080101030307000508020200 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ ntg-context mailing list ntg-context@ntg.nl http://www.ntg.nl/mailman/listinfo/ntg-context --------------080101030307000508020200--