From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/92357 Path: news.gmane.org!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Cover page (Metafun) Date: Fri, 14 Aug 2015 18:53:10 +0200 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1613448032==" X-Trace: ger.gmane.org 1439571242 31800 80.91.229.3 (14 Aug 2015 16:54:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Aug 2015 16:54:02 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Fri Aug 14 18:53:44 2015 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1ZQIEh-0006xK-RZ for gctc-ntg-context-518@m.gmane.org; Fri, 14 Aug 2015 18:53:43 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id E4D0410234 for ; Fri, 14 Aug 2015 18:53:42 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id dbnT5s2qdw7i for ; Fri, 14 Aug 2015 18:53:41 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id A522410236 for ; Fri, 14 Aug 2015 18:53:18 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7D8F5101FB for ; Fri, 14 Aug 2015 18:53:14 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id GqByIZWKKkUx for ; Fri, 14 Aug 2015 18:53:13 +0200 (CEST) Original-Received: from filter4-ams.mf.surf.net (filter4-ams.mf.surf.net [192.87.102.72]) by balder.ntg.nl (Postfix) with ESMTP id 2EA4B101F7 for ; Fri, 14 Aug 2015 18:53:13 +0200 (CEST) Original-Received: from mail-ig0-x22b.google.com (mail-ig0-x22b.google.com [IPv6:2607:f8b0:4001:c05::22b]) by filter4-ams.mf.surf.net (8.14.4/8.14.4/Debian-4) with ESMTP id t7EGrBXs029287 (version=TLSv1/SSLv3 cipher=AES128-GCM-SHA256 bits=128 verify=NOT) for ; Fri, 14 Aug 2015 18:53:12 +0200 Original-Received: by igui7 with SMTP id i7so15968643igu.0 for ; Fri, 14 Aug 2015 09:53:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:content-type; bh=z8vfiOc1BbziCLQPnaWbL25QuFCIO+nELDu2DPiymho=; b=v+xx2ozGnNtbGYB3GVx39aPLhRj1fJi6jdjAhQoD36uBDaNBvA8PsuRK2QTcN5JCbh ySVUWZkpcfGhpngcmRymTGFpuv1wr+2O0rZU7iOpK9uvaTn6SK6nbnPNfWHPos+la2pW bVQX7QXJcVUCtk9R2sRPtRdLVE0pu9FCE0G94fPL68rCahxS968O+OnBEV3zdASZeGGX 7iz6lgocElPgyvWpEeFamwp069mqIVbbZ9jyGTbirxs1fsB6Ep3rRtl9MEbX9Pgx9vk/ 6oaGpiggDdNYPgGQAX36hTjCdJ3IQNGb61q6VNJQZ/ilNOzHnr6nA3ldUMqoohAWqKTG wCMg== X-Received: by 10.50.97.33 with SMTP id dx1mr3474860igb.1.1439571190893; Fri, 14 Aug 2015 09:53:10 -0700 (PDT) Original-Received: by 10.64.236.2 with HTTP; Fri, 14 Aug 2015 09:53:10 -0700 (PDT) X-Bayes-Prob: 0.0001 (Score 0, tokens from: ntg-context@ntg.nl, base:default, @@RPTN) X-CanIt-Geo: ip=2607:f8b0:4001:c05::22b; country=US; region=Iowa; city=Council Bluffs; latitude=41.2619; longitude=-95.8608; http://maps.google.com/maps?q=41.2619,-95.8608&z=6 X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 01P4ERcGc - 1cdd74f8808b - 20150814 (trained as not-spam) Received-SPF: pass (filter4-ams.mf.surf.net: domain of fabrice1.couvreur@gmail.com designates 2607:f8b0:4001:c05::22b as permitted sender) receiver=filter4-ams.mf.surf.net; client-ip=2607:f8b0:4001:c05::22b; envelope-from=; helo=mail-ig0-x22b.google.com; identity=mailfrom X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.16 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: "ntg-context" Xref: news.gmane.org gmane.comp.tex.context:92357 Archived-At: --===============1613448032== Content-Type: multipart/alternative; boundary=047d7b10c889767814051d4849ef --047d7b10c889767814051d4849ef Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Hans, To progress in the use of Metafun, I try to do the same cover page as your document 'Metafun ". Without looking at the code (but using the definitions of your colors), I managed to get the mosaic. I would write the word "MATH=C3=89MATIQUES" as you did with the word "CONTE= XTEN". Thank you, Fabrice \setuppagenumbering[location=3D] \setupcolors [state=3Dstart] \definecolor[maincolor][g=3D.6] \definecolor[pagecolor][s=3D.6] \definecolor[darkcolor][s=3D.2] \definecolor[textcolor][r=3D.6] \startMPinclusions color maincolor ; maincolor :=3D \MPcolor{maincolor} ; color pagecolor ; pagecolor :=3D \MPcolor{pagecolor} ; color darkcolor ; darkcolor :=3D \MPcolor{darkcolor} ; color textcolor ; textcolor :=3D \MPcolor{textcolor} ; \stopMPinclusions \startuseMPgraphic{CoverPage} path p ; p :=3D OverlayBox xyscaled (1/2,1/7) ; fill OverlayBox withcolor pagecolor ; path q ; q :=3D p enlarged -12pt randomized 12pt ; pair a ; for j=3D0 upto 6 : for i=3D0 upto 1 : a :=3D (i*xpart urcorner p,j*ypart urcorner p) ; q :=3D p enlarged -12pt randomized 12pt shifted a ; circular_shade (q, ceiling(uniformdeviate 4), maincolor, .5maincolor) ; draw q withpen pencircle scaled 8pt withcolor darkcolor ; endfor ; endfor ; \stopuseMPgraphic \defineoverlay[CoverPage][\useMPgraphic{CoverPage}] \setupbackgrounds [rightpage] [background=3DCoverPage] \starttext \stoptext --047d7b10c889767814051d4849ef Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi Hans,
To progress in the use of Metafun, I try to do the same cover page as your document 'Metafun ". Without looking at the code (but using the definitions of your colors), I managed to get the mosaic.
I would
write the word "MATH=C3=89MATIQUES&qu= ot; as
<= span class=3D"hps">you did with the word "CONTEXTEN".<= /span>
Thank you,
Fa= brice


\setuppagenumbering[location=3D]

\setupcolors
= =C2=A0 [state=3Dstart]

\definecolor[maincolor][g=3D.6]
\definecol= or[pagecolor][s=3D.6]
\definecolor[darkcolor][s=3D.2]
\definecolor[te= xtcolor][r=3D.6]


\startMPinclusions
=C2=A0 color maincolor ; = maincolor :=3D \MPcolor{maincolor} ;
=C2=A0 color pagecolor ; pagecolor = :=3D \MPcolor{pagecolor} ;
=C2=A0 color darkcolor ; darkcolor :=3D \MPco= lor{darkcolor} ;
=C2=A0 color textcolor ; textcolor :=3D \MPcolor{textco= lor} ;
\stopMPinclusions

\startuseMPgraphic{CoverPage}
=C2=A0 = path p ; p :=3D OverlayBox xyscaled (1/2,1/7) ;
=C2=A0 fill OverlayBox w= ithcolor pagecolor ;
=C2=A0 path q ; q :=3D p enlarged -12pt randomized = 12pt ;
=C2=A0 pair a ;
=C2=A0 for j=3D0 upto 6 :
=C2=A0=C2=A0=C2= =A0=C2=A0 for i=3D0 upto 1 :
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 = a :=3D (i*xpart urcorner p,j*ypart urcorner p) ;
=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0 q :=3D p enlarged -12pt randomized 12pt shifted a ;=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 circular_shade
=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 (q, ceiling(uniformdeviate 4), m= aincolor, .5maincolor) ;
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 draw q wit= hpen pencircle scaled 8pt withcolor darkcolor ;
=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0 endfor ;
=C2=A0=C2=A0=C2=A0 endfor ;
\stopuseMPgraphic
\defineoverlay[CoverPage][\useMPgraphic{CoverPage}]

\setupbackgroun= ds
=C2=A0 [rightpage]
=C2=A0 [background=3DCoverPage]

\startte= xt

\stoptext
--047d7b10c889767814051d4849ef-- --===============1613448032== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly90ZXguYWFuaGV0Lm5ldAphcmNoaXZlICA6IGh0dHA6Ly9mb3VuZHJ5LnN1cGVsZWMu ZnIvcHJvamVjdHMvY29udGV4dHJldi8Kd2lraSAgICAgOiBodHRwOi8vY29udGV4dGdhcmRlbi5u ZXQKX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX18= --===============1613448032==--