From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 32539 invoked from network); 2 Dec 2023 11:56:26 -0000 Received: from cgl.ntg.nl (5.39.185.202) by inbox.vuxu.org with ESMTPUTF8; 2 Dec 2023 11:56:26 -0000 Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id CAE06483B2A for ; Sat, 2 Dec 2023 12:56:16 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Mdcfgna5fSWj for ; Sat, 2 Dec 2023 12:56:15 +0100 (CET) Received: from cgl.ntg.nl (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id C5A1A483C69 for ; Sat, 2 Dec 2023 12:54:46 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by cgl.ntg.nl (Postfix) with ESMTP id 16C47483B20 for ; Sat, 2 Dec 2023 12:54:24 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at cgl.ntg.nl Received: from cgl.ntg.nl ([127.0.0.1]) by localhost (cgl.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id F-vtm-SUVQWy for ; Sat, 2 Dec 2023 12:54:23 +0100 (CET) Received: from mail-yw1-f169.google.com (mail-yw1-f169.google.com [209.85.128.169]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by cgl.ntg.nl (Postfix) with ESMTPS id 4FF62483B1F for ; Sat, 2 Dec 2023 12:54:23 +0100 (CET) Received: by mail-yw1-f169.google.com with SMTP id 00721157ae682-5d7201c9d51so1783417b3.1 for ; Sat, 02 Dec 2023 03:54:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1701518061; x=1702122861; darn=ntg.nl; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=WqbSvcYg3xGNTfdQQzOSE/rlzswD8q4fVHueuLnEQ/c=; b=Y6QZjKO1Nh6jfXBOX0i+cam3QA74elR6kkJv3U/VtNAbt1WoM6DVFSON9HHlwTa9PY hpjJFkcz+6bzLGcWok7B6QWUWoGxwEGqBDqAukntbPqFV9MXcrFHZkNAKnFQQEX+oRL+ vdRSf9R2fYvsy2v50C0ohYVTG/B4H1chOObtyPgjoFnbhSOTidu25S7LeBsAHvyOAFsN KeCuoLEokBu8/gOQSBl/jpqBnjME1rl5H1lwjuD60CU+3mC+3QKgoom+Tu8d1DJeAi0Y CTiiLLMwIxXaN4pEZRBKytc4/6it8XDQ9yt0RCZhBWvvTuKCRcIu9zWUhGf+iyXhV1qA BVvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1701518061; x=1702122861; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=WqbSvcYg3xGNTfdQQzOSE/rlzswD8q4fVHueuLnEQ/c=; b=Ja7K7H0mR62gUJXw3F66S4SuC/qUu9eOeFAM/+s982aqOdaBHHRFlcptr8MRtNtR2F K+IqcyaEmL4uaXBaCdoDE4MaGgW0K7z9ZEWMpFoxdAvLnz4dVyFThEgQf5J4WLkld7Ou Uyal8Lpa7SO9jNwCaO+e8DZJ4iWeT2ihFYql5ATVk9woKXUjJRr8OtqEIBl+rwzET9TE wMLtKDK/xgMlwkGF9oFXuJwCSfkJAwvB/Ee/AeWFGlGZ9SrPlDJOLZ5laUhRJOHq/3sR h4t1f4yNsL+sjPiwWH3uIzZ5IeKMqkrUEiFUtcIFHTytJMPCjtVtFaunfr4WA6lxdarI lU8Q== X-Gm-Message-State: AOJu0Yy+zkq/l5aPUyUr8SKbQpvyd+nl0OR5ZVYbqvAtpPYQ6oI8EXwH 0Hd8Of3MZpK0poE2z2KODITXaVkcwBLxg0LBzOpgyslp X-Google-Smtp-Source: AGHT+IHNjdg4l/qvQOAaHL+tcelOTIUJ37mPMFdcbgLgxyOaFCry8W+Y6OVdVlHlP+SWsTfbdqDneH6VSo28pPhE1ns= X-Received: by 2002:a25:ec01:0:b0:db5:4e15:77ef with SMTP id j1-20020a25ec01000000b00db54e1577efmr363209ybh.52.1701518060820; Sat, 02 Dec 2023 03:54:20 -0800 (PST) MIME-Version: 1.0 References: <6CF6CA52-682B-42F6-BAF2-FCEF993C4C75@getmailspring.com> In-Reply-To: <6CF6CA52-682B-42F6-BAF2-FCEF993C4C75@getmailspring.com> From: fv leung Date: Sat, 2 Dec 2023 19:54:09 +0800 Message-ID: To: mailing list for ConTeXt users Message-ID-Hash: 6GJUTMI4J7ATWI3ACZOGK5B7GZWITUQM X-Message-ID-Hash: 6GJUTMI4J7ATWI3ACZOGK5B7GZWITUQM X-MailFrom: fvleung@gmail.com X-Mailman-Rule-Misses: dmarc-mitigation; no-senders; approved; emergency; loop; banned-address; member-moderation; nonmember-moderation; administrivia; implicit-dest; max-recipients; max-size; news-moderation; no-subject; digests; suspicious-header X-Mailman-Version: 3.3.8 Precedence: list Reply-To: mailing list for ConTeXt users Subject: [NTG-context] Re: multipage metapost output from ConTeXt List-Id: mailing list for ConTeXt users Archived-At: List-Archive: List-Help: List-Owner: List-Post: List-Subscribe: List-Unsubscribe: Content-Type: multipart/mixed; boundary="===============6406579975572851433==" --===============6406579975572851433== Content-Type: multipart/alternative; boundary="000000000000981eca060b858b00" --000000000000981eca060b858b00 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable You didn't specify the color of path A in p2 and p4. So it's drawn in black= . The other issue, I can't help. Emanuel Han via ntg-context =E6=96=BC 2023=E5=B9=B412= =E6=9C=882=E6=97=A5 =E9=80=B1=E5=85=AD =E4=B8=8B=E5=8D=887:23=E5=AF=AB=E9= =81=93=EF=BC=9A > So is there a way to circumvent these issues? Or an explanation for this > behavior, so that I can try to find a solution by myself? > > Thanks > Emanuel > > On Nov. 29 2023, at 12:25 pm, Emanuel Han via ntg-context < > ntg-context@ntg.nl> wrote: > > Dear Aditya and Fabrice, > thanks for your responses. > > I included some of Fabrice's code into mine for testing purpose, and > indeed the multipage works now. > What is bizarre is that issues appear now that didn't appear before: > > - Path A is drawn with color red on page 1, and in color black on all > following pages, while it should stay red. > - textext(, ) is overwriting with > "T=3D"&decimal(currentime) which has been used previously in textext(= ) > before the for k=3D1 endfor loop. This overwriting happens only for th= e first > textext() which occurs inside the for k=3D1 endfor loop. All other tex= text() > inside the for k=3D1 endfor loop are not drawn at all. If the line = =C2=AB draw > textext("T=3D"&decimal(currentime)) scaled 2 shifted(0,2in) withcolor = magenta > ; =C2=BB is commented out, the first textext() inside the for k=3D1 en= dfor loop is > not drawn neither. It must be an issue with textext(), because when I > replace textext() by lmt_outline[], the text is drawn. > > Adjusted mwe: > > \enableregime[utf] % enable unicoded input > > \definefontfamily [RomanFont] [rm] [calluna] > > \definefontfamily [KoreanFont] [rm] [applemyungjo] > > \definefontfamily [JapaneseFont] [rm] [hannotatesc] > > \definefontfeature > [fea] > [mode=3Dnode,language=3Ddflt,script=3Darab, > init=3Dyes, > medi=3Dyes, > fina=3Dyes, > isol=3Dyes, > calt=3Dyes, > rlig=3Dyes, > tlig=3Dyes, > trep=3Dyes, > curs=3Dyes, > kern=3Dyes, > mark=3Dyes > ] > > \starttypescript [serif] [notonaskharabic] > \definefontsynonym [notonaskharabic-Light] > [name:notonaskharabic] [features=3Dfea] > \definefontsynonym [notonaskharabic-Bold] > [name:notonaskharabic] [features=3Dfea] > \definefontsynonym [notonaskharabic-Italic] > [name:notonaskharabic] [features=3Dfea] > \definefontsynonym [notonaskharabic-Bold-Italic] > [name:notonaskharabic] [features=3Dfea] > \stoptypescript > > \starttypescript [serif] [notonaskharabic] > \usetypescript[serif][fallback] > \definefontsynonym [Serif] > [notonaskharabic-Light] [features=3Dfea] > \definefontsynonym [SerifItalic] > [notonaskharabic-Italic] [features=3Dfea] > \definefontsynonym [SerifBold] > [notonaskharabic-Bold] [features=3Dfea] > \definefontsynonym [SerifBoldItalic] > [notonaskharabic-Bold-Italic] [features=3Dfea] > \stoptypescript > > \starttypescript [notonaskharabic] > \definetypeface [notonaskharabic] [rm] [serif] [notonaskharabic] > [default] > \stoptypescript > > \usetypescript[notonaskharabic] > > \setupbodyfont [RomanFont] > > \usecolors[crayola] > > \startMPinclusions > > picture p[]; > path TheFrame ; > TheFrame :=3D fullsquare scaled 5in ; > > z0 =3D (0,0); > z1 =3D (60,40); > z2 =3D (40,90); > z3 =3D (10,70); > z4 =3D (30,50); > z5 =3D (90,70); > z6 =3D (-10,70); > > path A; A =3D z0..z1..z2..z3..z4 ; > pair AStartPoint; AStartPoint =3D point 0 of A; > pair AEndPoint; AEndPoint =3D point 4 of A; > path B; B =3D z5..z6; > pair BStartPoint; BStartPoint =3D point 0 of B; > pair BEndPoint; BEndPoint =3D point 1 of B; > path C; C =3D AStartPoint..AEndPoint; > > p1:=3Dimage( > draw A withcolor red; > ); > > p2:=3Dimage(draw A; label(lmt_outline [ > text =3D "\JapaneseFont =E6=97=A5=E6=9C=AC=E8=AA=9E" > ], AEndPoint);); > > p3:=3Dimage( > label(textext("\notonaskharabic \textdir TRT =D8=AF=D8=A7=D9=86=DA=AF= ") scaled 1.2, > BStartPoint); > ); > > p4:=3Dimage(draw A; label(lmt_outline [ > text =3D "\KoreanFont =ED=95=9C=EA=B5=AD=EC=96=B4" > ], AStartPoint);); > > p5:=3Dimage( > label(textext("b=C4=81ng"), BEndPoint); > draw C withcolor green; > ); > > p6:=3Dimage( > draw B withcolor blue; > ); > \stopMPinclusions > > \starttext > > \dorecurse{6}{ % Frame > \setupMPpage[background=3Dcolor, backgroundcolor=3DSpringGreen] > \startMPpage[pagestate=3Dstart] > currentime :=3D #1 ; > % Just for learning : > draw TheFrame withpen pencircle scaled .1in withcolor magenta ; > draw textext("T=3D"&decimal(currentime)) scaled 2 shifted(0,2in) withcol= or > magenta ; > for k=3D1 upto currentime: draw p[k]; endfor > setbounds currentpicture to TheFrame ; > > desiredformat :=3D 1080;% In pixels (will be converted by default at 72d= pi) > currentpicture :=3D currentpicture xysized (desiredformat ,desiredformat= ); > > \stopMPpage > } > > \stoptext > On Nov. 27 2023, at 11:25 pm, Aditya Mahajan wrote: > > On Mon, 27 Nov 2023, Fabrice L wrote: > > > Hi, > > > > It is fun fact very easy to do. You just use \startMPpage (=E2=80=A6) > \stopMPpage multiple times. Here is an example which build an animation o= f > a particle moving according to a Brownian motion. > > A very similar option is to pass a variable to a metapost drawing. This i= s > what I use: > > https://adityam.github.io/context-blog/post/metapost-animation/ > > It only works when viewed in acrobat, you can just comment out the > animation part and wrap it in \startTEXpage .. \stopTEXpage to get > multi-page animation. > > > Aditya___________________________________________________________________= ________________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > _________________________________________________________________________= __________ > > > _________________________________________________________________________= __________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > _________________________________________________________________________= __________ > > > _________________________________________________________________________= __________ > If your question is of interest to others as well, please add an entry to > the Wiki! > > maillist : ntg-context@ntg.nl / > https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl > webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror= ) > archive : https://github.com/contextgarden/context > wiki : https://wiki.contextgarden.net > > _________________________________________________________________________= __________ > --000000000000981eca060b858b00 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
You didn't specify the color of path A in p2 and p4. S= o it's drawn in black.
The other issue, I can't help.

Eman= uel Han via ntg-context <ntg-conte= xt@ntg.nl> =E6=96=BC 2023=E5=B9=B412=E6=9C=882=E6=97=A5 =E9=80=B1=E5= =85=AD =E4=B8=8B=E5=8D=887:23=E5=AF=AB=E9=81=93=EF=BC=9A
So is there a way to circumve= nt these issues? Or an explanation for this behavior, so that I can try to = find a solution by myself?

Thanks
Emanuel

=
On Nov. 29 2023, at 12:25 pm, Emanuel Han via ntg-context <ntg-context@ntg.nl>= wrote:
Dear Aditya and Fabrice,
thanks for= your responses.

I included some of Fabrice's code into m= ine for testing purpose, and indeed the multipage works now.
What= is bizarre is that issues appear now that didn't appear before:
<= ul>
  • Path A is drawn with color red on page 1, and in color black on= all following pages, while it should stay red.
  • textext(= <text>, <pair>) is overwriting <text> with "T=3D&quo= t;&decimal(currentime) which has been used previously=C2=A0 in textext(= ) before the for k=3D1 endfor loop. This overwriting happens only for the f= irst textext() which occurs inside the for k=3D1 endfor loop. All other tex= text() inside the for k=3D1 endfor loop are not drawn at all. If the line= =C2=A0 =C2=AB draw textext("T=3D"&decimal(currentime)) scaled= 2 shifted(0,2in) withcolor magenta ; =C2=BB is commented out, the first te= xtext() inside the for k=3D1 endfor loop is not drawn neither. It must be a= n issue with textext(), because when I replace textext() by lmt_outline[], = the text is drawn.
  • Adjusted mwe:

    \enabler= egime[utf] % enable unicoded input

    \definefontfamily [RomanFo= nt] [rm] [calluna]

    \definefontfamily [KoreanFont] [rm] [apple= myungjo]

    \definefontfamily [JapaneseFont] [rm] [hannotatesc]<= /div>
    \definefontfeature
    =C2=A0[fea]
    =C2=A0[mod= e=3Dnode,language=3Ddflt,script=3Darab,
    =C2=A0 init=3Dyes,
    <= div>=C2=A0 medi=3Dyes,
    =C2=A0 fina=3Dyes,
    =C2=A0 isol= =3Dyes,
    =C2=A0 calt=3Dyes,
    =C2=A0 rlig=3Dyes,
    =C2=A0 tlig=3Dyes,
    =C2=A0 trep=3Dyes,
    =C2=A0 curs=3Dye= s,
    =C2=A0 kern=3Dyes,
    =C2=A0 mark=3Dyes
    ]
    \starttypescript [serif] [notonaskharabic]
    =C2=A0\defi= nefontsynonym [notonaskharabic-Light]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [= name:notonaskharabic]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [features= =3Dfea]
    =C2=A0\definefontsynonym [notonaskharabic-Bold]=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [name:notonaskharabic]=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0 [features=3Dfea]
    =C2=A0\definefontsynony= m [notonaskharabic-Italic]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [name:notonaskhara= bic]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [features=3Dfea]
    = =C2=A0\definefontsynonym [notonaskharabic-Bold-Italic] [name:notonaskharabi= c]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [features=3Dfea]
    \st= optypescript

    \starttypescript [serif] [notonaskharabic]
    =
    =C2=A0\usetypescript[serif][fallback]
    =C2=A0\definefontsynon= ym [Serif]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [noto= naskharabic-Light]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [features=3Dfea]
    =C2=A0\definefontsynonym [SerifItalic]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0= =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [notonas= kharabic-Italic]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [features=3Dfea]
    = =C2=A0\definefontsynonym [SerifBold]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [noto= naskharabic-Bold]=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [features=3Dfea= ]
    =C2=A0\definefontsynonym [SerifBoldItalic]=C2=A0=C2=A0=C2=A0=C2= =A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 [notonaskharabic-Bold-I= talic] [features=3Dfea]
    \stoptypescript

    \starttypes= cript [notonaskharabic]
    =C2=A0 \definetypeface [notonaskharabic] = [rm] [serif] [notonaskharabic] [default]
    \stoptypescript
    \usetypescript[notonaskharabic]

    \setupbodyfont [RomanFo= nt]
    =C2=A0=C2=A0=C2=A0
    \usecolors[crayola]

    \startMPinclusions

    picture p[];
    =C2=A0path TheFra= me ;
    =C2=A0TheFrame :=3D fullsquare scaled 5in ;

    = =C2=A0z0 =3D (0,0);=C2=A0=C2=A0=C2=A0
    =C2=A0z1 =3D (60,40);
    =
    =C2=A0z2 =3D (40,90);=C2=A0
    =C2=A0z3 =3D (10,70);
    = =C2=A0z4 =3D (30,50);
    =C2=A0z5 =3D (90,70);
    =C2=A0z6 = =3D (-10,70);

    path A; A =3D z0..z1..z2..z3..z4 ;
    pa= ir AStartPoint; AStartPoint =3D point 0 of A;
    pair AEndPoint; AEn= dPoint =3D point 4 of A;
    path B; B =3D=C2=A0 z5..z6;
    pa= ir BStartPoint; BStartPoint =3D point 0 of B;
    pair BEndPoint; BEn= dPoint =3D point 1 of B;
    path C; C =3D AStartPoint..AEndPoint;
    p1:=3Dimage(
    =C2=A0=C2=A0=C2=A0 draw A withcolor red;=
    );

    p2:=3Dimage(draw A; label(lmt_outline [
    text =3D "\JapaneseFont =E6=97=A5=E6=9C=AC=E8=AA=9E"
    =C2=A0=C2=A0=C2=A0 ], AEndPoint););

    p3:=3Dimage(
    = =C2=A0=C2=A0=C2=A0 label(textext("\notonaskharabic \textdir TRT =D8=AF= =D8=A7=D9=86=DA=AF") scaled 1.2, BStartPoint);
    );

    <= div>p4:=3Dimage(draw A; label(lmt_outline [
    text =3D "\Korea= nFont =ED=95=9C=EA=B5=AD=EC=96=B4"
    =C2=A0=C2=A0=C2=A0 ], ASt= artPoint););

    p5:=3Dimage(
    =C2=A0=C2=A0=C2=A0 label(= textext("b=C4=81ng"), BEndPoint);
    =C2=A0=C2=A0=C2=A0 dr= aw C withcolor green;
    );

    p6:=3Dimage(
    =C2= =A0=C2=A0=C2=A0 draw B withcolor blue;
    );
    \stopMPinclus= ions

    \starttext

    \dorecurse{6}{ % Frame
    =C2=A0\setupMPpage[background=3Dcolor, backgroundcolor=3DSpringGreen]
    \startMPpage[pagestate=3Dstart]=C2=A0=C2=A0
    =C2=A0currenti= me :=3D #1 ;
    =C2=A0% Just for learning :
    =C2=A0draw The= Frame withpen pencircle scaled .1in withcolor magenta ;
    =C2=A0dra= w textext("T=3D"&decimal(currentime)) scaled 2 shifted(0,2in)= withcolor magenta ;
    =C2=A0for k=3D1 upto currentime: draw p[k]; = endfor
    =C2=A0setbounds currentpicture to TheFrame ;

    =C2=A0desiredformat :=3D 1080;% In pixels (will be converted by default at= 72dpi)
    =C2=A0currentpicture :=3D currentpicture xysized (desired= format ,desiredformat );
    =C2=A0
    \stopMPpage
    }=

    \stoptext
    On Nov. 27 2023, at 11:25 pm, Aditya Mah= ajan <adityam@umi= ch.edu> wrote:
    On Mon, 27 Nov 2023, Fabri= ce L wrote:

    > Hi,
    >
    > It is fun = fact very easy to do. You just use \startMPpage (=E2=80=A6) \stopMPpage mul= tiple times. Here is an example which build an animation of a particle movi= ng according to a Brownian motion.

    A very similar option is t= o pass a variable to a metapost drawing. This is what I use:


    It only works when viewed in acrobat, you can jus= t comment out the animation part and wrap it in \startTEXpage .. \stopTEXpa= ge to get multi-page animation.

    Aditya_______________________= ____________________________________________________________
    If y= our question is of interest to others as well, please add an entry to the W= iki!

    __________________________= _________________________________________________________
    _______________________________________________________________= ____________________
    If your question is of interest to others as= well, please add an entry to the Wiki!

    <= div>webpage : https= ://www.pragma-ade.nl / https://context.aanhet.net (mirror)
    wiki : https://wiki.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 / https://mailman.ntg.nl/mail= man3/lists/ntg-context.ntg.nl
    webpage=C2=A0 : https://www.pragma-ade.nl / https://context.aanhet.net= (mirror)
    archive=C2=A0 : https://github.com/contextgarden/context=
    wiki=C2=A0 =C2=A0 =C2=A0: https://wiki.contextgarden.net
    ___________________________________________________________________________= ________
    --000000000000981eca060b858b00-- --===============6406579975572851433== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl webpage : https://www.pragma-ade.nl / https://context.aanhet.net (mirror) archive : https://github.com/contextgarden/context wiki : https://wiki.contextgarden.net ___________________________________________________________________________________ --===============6406579975572851433==--