From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/105774 Path: news.gmane.org!.POSTED.blaine.gmane.org!not-for-mail From: Fabrice Couvreur Newsgroups: gmane.comp.tex.context Subject: Re: Eofill extension (Metafun) Date: Mon, 9 Dec 2019 14:28:06 +0100 Message-ID: References: Reply-To: mailing list for ConTeXt users Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0822371484670740364==" Injection-Info: blaine.gmane.org; posting-host="blaine.gmane.org:195.159.176.226"; logging-data="260058"; mail-complaints-to="usenet@blaine.gmane.org" To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Mon Dec 09 14:30:33 2019 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from zapf.boekplan.nl ([5.39.185.232] helo=zapf.ntg.nl) by blaine.gmane.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.89) (envelope-from ) id 1ieJ7M-0015Oz-Ov for gctc-ntg-context-518@m.gmane.org; Mon, 09 Dec 2019 14:30:28 +0100 Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 20037163DF6; Mon, 9 Dec 2019 14:30:00 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id bH5amHlgCwiR; Mon, 9 Dec 2019 14:29:58 +0100 (CET) Original-Received: from zapf.ntg.nl (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id 7BD19163DF8; Mon, 9 Dec 2019 14:29:58 +0100 (CET) Original-Received: from localhost (localhost [127.0.0.1]) by zapf.ntg.nl (Postfix) with ESMTP id B0A0C163DF6 for ; Mon, 9 Dec 2019 14:29:57 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at zapf.boekplan.nl Original-Received: from zapf.ntg.nl ([127.0.0.1]) by localhost (zapf.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id kyn7NlN_wlTC for ; Mon, 9 Dec 2019 14:29:56 +0100 (CET) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.128.47; helo=mail-wm1-f47.google.com; envelope-from=fabrice1.couvreur@gmail.com; receiver= Original-Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by zapf.ntg.nl (Postfix) with ESMTPS id D0DA116376E for ; Mon, 9 Dec 2019 14:29:56 +0100 (CET) Original-Received: by mail-wm1-f47.google.com with SMTP id q9so15487543wmj.5 for ; Mon, 09 Dec 2019 05:29:56 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=wRICTI3xAbGpPk0PKmuzmEZj5SZaHRLtQkdmdZAjLrQ=; b=qPCT8AJY1wpIJUwZzaJq2ek8Hi6TBmWhQ9iOayaYZol3EGDU+XRFRSG0bOswLk82x6 KQXLp/5mUyetJbSfE0JQSO6pi7+qcyGqnHKoebR+CbybqyaeegLiiBgVrIzYgLddpmCC smJP7J/qYmOJeK4E6HF/68noKshqyCmGgbr9dNxiQwD9oYV2Z4d1y4JUcitAOp48svKz fvVwCDk7KvimKfQ+99Z5ubJMwArMX0nDUsYC2R3BhcItNA29hx1dfciIK3YAQxB5HV3M efY8sqQVAioW3+TyBBlaf24Nl8CW7QW1JWTwkXnnYhdWKcvXr4F+7DqXSE8Rc+220rV5 VEVA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=wRICTI3xAbGpPk0PKmuzmEZj5SZaHRLtQkdmdZAjLrQ=; b=uIWBM7yTzlOX8khc49aX2vb845HHV13Ez0WQy4RmYXoTWHQh8bWmFl00rCreJjuYtQ EWswoU0vvx//PFDVcoEDMGzok7XIImvt7hEcPuASD7YgUOI1rOHhMb6+QiN9GJE4BCpj 0iZaPbVYwWnKw+qGfoJ4uECfHC2MinUbJNXMInl08WPMwnZ/gDXekwP3ByCu3fNtWSK7 e637QQ3gn30vW6YsCcQFBskfRIX7v9FTMmdE43x4WTandhGe3O/v+Nf3szqNobA8/Fd5 wfX8Td881cLmbjSnsTF+agFhqVlG9gxVsmPkSwosBBGkU89bcMp+vPQFDRbE38sZL+Md COcA== X-Gm-Message-State: APjAAAVi981wu9A8mPNabvd8JS6aDZ2j8hjIJ5/T4xyiQdvSR9GmWFVs VfTQsudMXT/UAnL7Me9gogdVjeJCGjY95OazPjn+/GPn X-Google-Smtp-Source: APXvYqxlpH3U1g9FAWi77B5N3rmUp9jfh2p3IMewlkbD21n+Nw5HNGb08zIJXHSxeu6QO+75fv6tDVF1GMm2EpvhLL4= X-Received: by 2002:a05:600c:2049:: with SMTP id p9mr24133369wmg.84.1575898195759; Mon, 09 Dec 2019 05:29:55 -0800 (PST) In-Reply-To: X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.26 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:105774 Archived-At: --===============0822371484670740364== Content-Type: multipart/alternative; boundary="0000000000002913cd05994564de" --0000000000002913cd05994564de Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello, Thank you for these explanations. Fabrice Le lun. 9 d=C3=A9c. 2019 =C3=A0 03:21, Henri Menke a= =C3=A9crit : > On 12/9/19 10:02 AM, Fabrice Couvreur wrote: > > Hello, > > Is it possible to use the eofill extension in this code ? I tried witho= ut > > success. Thank you. > > No, eofill is basically just a frontend for the PDF primitive eofill, > which works on a single connected path that intersects itself. > > If that wasn't enough, the numberstriped instruction does not return a > path but a picture and pictures are immutable. > > > Fabrice > > > > \starttext > > \startMPcode > > path carre, disque; > > > > carre =3D fullsquare scaled 200; > > disque =3D fullcircle scaled 200; > > > > draw carre numberstriped (.25,15,5) withcolor \MPcolor{magenta}; > > fill disque withcolor white; > > > > draw carre withcolor \MPcolor{orange}; > > draw disque withcolor \MPcolor{orange}; > > > > path a[]; > > a1 =3D origin -- point 3.5 of carre; > > > > interim ahangle :=3D 30; > > drawdblarrow a1 withpen pencircle scaled 1.5pt withcolor darkred; > > label.top("$R$", point 1/2 of a1); > > \stopMPcode > > \stoptext > > > > > > > _________________________________________________________________________= __________ > > If your question is of interest to others as well, please add an entry > to the Wiki! > > > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > > archive : https://bitbucket.org/phg/context-mirror/commits/ > > wiki : http://contextgarden.net > > > _________________________________________________________________________= __________ > > > > _________________________________________________________________________= __________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > http://www.ntg.nl/mailman/listinfo/ntg-context > webpage : http://www.pragma-ade.nl / http://context.aanhet.net > archive : https://bitbucket.org/phg/context-mirror/commits/ > wiki : http://contextgarden.net > > _________________________________________________________________________= __________ > --0000000000002913cd05994564de Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
<= span class=3D"gmail-tlid-translation gmail-translation" lang=3D"en">Hello,
Thank you for these explanations.=
Fabrice

Le=C2=A0lun. 9 d=C3=A9c. 2019 =C3=A0=C2=A003:21, Henri Menke <henrimenke@gmail.com> a =C3=A9crit= =C2=A0:
On 12/9/= 19 10:02 AM, Fabrice Couvreur wrote:
> Hello,
> Is it possible to use the eofill extension in this code ? I tried with= out
> success. Thank you.

No, eofill is basically just a frontend for the PDF primitive eofill,
which works on a single connected path that intersects itself.

If that wasn't enough, the numberstriped instruction does not return a<= br> path but a picture and pictures are immutable.

> Fabrice
>
> \starttext
> \startMPcode
>=C2=A0 =C2=A0 =C2=A0path carre, disque;
>
>=C2=A0 =C2=A0 =C2=A0carre =3D fullsquare scaled 200;
>=C2=A0 =C2=A0 =C2=A0disque =3D fullcircle scaled 200;
>
>=C2=A0 =C2=A0 =C2=A0draw carre numberstriped (.25,15,5) withcolor \MPco= lor{magenta};
>=C2=A0 =C2=A0 =C2=A0fill disque withcolor white;
>
>=C2=A0 =C2=A0 =C2=A0draw carre=C2=A0 withcolor \MPcolor{orange};
>=C2=A0 =C2=A0 =C2=A0draw disque=C2=A0 withcolor \MPcolor{orange};
>
>=C2=A0 =C2=A0 =C2=A0path a[];
>=C2=A0 =C2=A0 =C2=A0a1 =3D origin -- point 3.5 of carre;
>
>=C2=A0 =C2=A0 =C2=A0interim ahangle :=3D 30;
>=C2=A0 =C2=A0 =C2=A0drawdblarrow a1 withpen pencircle scaled 1.5pt with= color darkred;
>=C2=A0 =C2=A0 =C2=A0label.top("$R$", point 1/2 of a1);
> \stopMPcode
> \stoptext
>
>
> ______________________________________________________________________= _____________
> If your question is of interest to others as well, please add an entry= to the Wiki!
>
> maillist : ntg= -context@ntg.nl / http://www.ntg.nl/mailman/listin= fo/ntg-context
> webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.ne= t
> archive=C2=A0 : https://bitbucket.org/phg/cont= ext-mirror/commits/
> wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
> ______________________________________________________________________= _____________
>
___________________________________________________________________________= ________
If your question is of interest to others as well, please add an entry to t= he Wiki!

maillist : ntg-cont= ext@ntg.nl / http://www.ntg.nl/mailman/listinfo/nt= g-context
webpage=C2=A0 : http://www.pragma-ade.nl / http://context.aanhet.net=
archive=C2=A0 : https://bitbucket.org/phg/context-m= irror/commits/
wiki=C2=A0 =C2=A0 =C2=A0: http://contextgarden.net
___________________________________________________________________________= ________
--0000000000002913cd05994564de-- --===============0822371484670740364== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: base64 Content-Disposition: inline X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX18KSWYgeW91ciBxdWVzdGlvbiBpcyBvZiBpbnRlcmVz dCB0byBvdGhlcnMgYXMgd2VsbCwgcGxlYXNlIGFkZCBhbiBlbnRyeSB0byB0aGUgV2lraSEKCm1h aWxsaXN0IDogbnRnLWNvbnRleHRAbnRnLm5sIC8gaHR0cDovL3d3dy5udGcubmwvbWFpbG1hbi9s aXN0aW5mby9udGctY29udGV4dAp3ZWJwYWdlICA6IGh0dHA6Ly93d3cucHJhZ21hLWFkZS5ubCAv IGh0dHA6Ly9jb250ZXh0LmFhbmhldC5uZXQKYXJjaGl2ZSAgOiBodHRwczovL2JpdGJ1Y2tldC5v cmcvcGhnL2NvbnRleHQtbWlycm9yL2NvbW1pdHMvCndpa2kgICAgIDogaHR0cDovL2NvbnRleHRn YXJkZW4ubmV0Cl9fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19f X19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fX19fCg== --===============0822371484670740364==--