Re: [NTG-context] Metapost Animation of Sine

2021-07-22 Thread Otared Kavian
Hi Jeroen, Unfortunately I am not familiar with Tikz, since all my documents use what is built-in ConTeXt and Metapost… That being said I am sure someone on the list can help you with Tikz module. Best regards: Otared > On 22 Jul 2021, at 14:28, Jeroen wrote: > > Hi, both solutions are

Re: [NTG-context] Metapost Animation of Sine

2021-07-22 Thread Jeroen
Hi, both solutions are great! This is what I had in mind, a rolling sine. Is there a way to get the same result with the Tikz module? \usemodule[animation] \setupinteraction[state=start] \starttext \input tufte \framed{ \startanimation[menu=yes,framerate=40] \dorecurse{50}{\expanded

Re: [NTG-context] Metapost Animation of Sine

2021-07-21 Thread Otared Kavian
Hi, Adding to my previous message, if you are looking for an animation of the wave equation for a string with fixed endpoints, one has to use something like the following: % begin wave-sine-string.tex \usemodule[animation] \setupinteraction[state=start] \starttext \startTEXpage[offset=2pt]

Re: [NTG-context] Metapost Animation of Sine

2021-07-21 Thread Otared Kavian
Hi, I wonder whether something like the following is what you are looking for: % begin wave-sine.tex \usemodule[animation] \setupinteraction[state=start] \starttext \startTEXpage[offset=2pt] \startanimation[menu=yes,framerate=10] \dorecurse{100}{\expanded {\startframe

Re: [NTG-context] Metapost Animation of Sine

2021-07-21 Thread Jeroen
I am looking for a sine animation as the one file f.pdf on this site http://www.12000.org/my_notes/Mathematica_animation_into_PDF_using_latex/index.htm Jeroen Op wo 21 jul. 2021 om 17:54 schreef Fabrice L : > Hi, > > Le 21 juill. 2021 à 10:08, Jeroen a écrit : > > I use this small animation

Re: [NTG-context] Metapost Animation of Sine

2021-07-21 Thread Fabrice L
Hi, > Le 21 juill. 2021 à 10:08, Jeroen a écrit : > > I use this small animation to enlarge a circle > > > \usemodule[animation] > \setupinteraction[state=start] > \starttext > \startanimation[menu=yes,framerate=10] > \dorecurse{7}{\expanded > {\startframe > \startMPcode > path p; >

[NTG-context] Metapost Animation of Sine

2021-07-21 Thread Jeroen
I use this small animation to enlarge a circle \usemodule[animation] \setupinteraction[state=start] \starttext \startanimation[menu=yes,framerate=10] \dorecurse{7}{\expanded {\startframe \startMPcode path p; numeric n, u; u := 1cm; n:=\recurselevel*u; p := fullcircle

Re: [NTG-context] MetaPost Animation

2010-04-16 Thread Boštjan Vesnicer
Hi Troy Here is a simple solution: \def\MyGraphics#1{% \startMPcode path p,q; p:=fullcircle scaled 72; L:=length p; N:=20; q:=subpath (0,#1/N*L) of p; draw q withcolor red; fill fullcircle scaled 3 shifted point length q of q withcolor blue; setbounds currentpicture to unitsquare shifted

Re: [NTG-context] MetaPost Animation

2010-04-16 Thread Hans Hagen
On 16-4-2010 9:36, Boštjan Vesnicer wrote: Hi Troy Here is a simple solution: \def\MyGraphics#1{% \startMPcode path p,q; p:=fullcircle scaled 72; L:=length p; N:=20; q:=subpath (0,#1/N*L) of p; draw q withcolor red; fill fullcircle scaled 3 shifted point length q of q withcolor blue; setbounds

Re: [NTG-context] MetaPost Animation

2010-04-16 Thread Troy Henderson
\def\MyGraphics#1{% Thanks for the replies folks. The example that I posted is a simple example. The example that I'm working on (displaying successive terms in a Taylor series) requires a bit of computations, and I don't want to have to go back and do each computation for each value of #1.

Re: [NTG-context] MetaPost Animation

2010-04-16 Thread Boštjan Vesnicer
If I have two different \startMPcode ... \stopMPcode sections, is there a way (perhaps it does this by default) to have the variables stored in the first block available in the second block? In pure MetaPost, I can do numeric a:=4; beginfig(1); label(decimal(a),origin); endfig;

Re: [NTG-context] MetaPost Animation

2010-04-16 Thread Wolfgang Schuster
Am 16.04.10 14:51, schrieb Troy Henderson: If I have two different \startMPcode ... \stopMPcode sections, is there a way (perhaps it does this by default) to have the variables stored in the first block available in the second block? In pure MetaPost, I can do numeric a:=4; beginfig(1);

[NTG-context] MetaPost Animation

2010-04-15 Thread Troy Henderson
I am trying to create an animation in ConTeXt + MetaPost. In particular, I would like to have ConTeXt + MetaPost generate each individual frame of the animation, and then I would like to place each of these graphics on the page in succession. I am looking for a ConTeXt way without placing the

Re: [NTG-context] Metapost animation

2005-05-19 Thread Mojca Miklavec
Hans Hagen wrote: Michal Kvasnicka wrote: Hm. Do you quote the Metafun manual, section 13.6? I know this technique. But my question was different: Is it possible to `animate' the fieldstack? In other words, to make it change one figure to another automatically, without clicking anywhere,

Re: [NTG-context] Metapost animation

2005-05-19 Thread luigi.scarso
Mojca Miklavec wrote: Can someone please post any example of JavaScript code to toggle the states like in either http://www.math.muni.cz/~plch/nkpm/nradanm6.pdf or https://www.pragma-pod.com/present/talks/fifteen.pdf? I hope this can help you: http://www.fi.muni.cz/~xholecek/animations/ luigi

Re: [NTG-context] Metapost animation

2004-09-16 Thread Michal Kvasnicka
Good evening. Many thanks for your answer. If it doesn't work for `small steps (1s)', it's probably useless, since for a smooth motion at least 15 frames per seconds are needed. But anyway, what is `svg'? Where can I see `dante XV presentation'? And one more question: Is sounds as

Re: [NTG-context] Metapost animation

2004-09-15 Thread Hans Hagen
Michal Kvasnicka wrote: Hm. Do you quote the Metafun manual, section 13.6? I know this technique. But my question was different: Is it possible to `animate' the fieldstack? In other words, to make it change one figure to another automatically, without clicking anywhere, changing one frame to

Re: [NTG-context] Metapost animation

2004-09-14 Thread Hans Hagen
Michal Kvasnicka wrote: Now to my next question. I have seen a great thing: Metapost pictures were animated (probably with the JavaScript code). You can found some examples here: http://www.math.muni.cz/~plch/nkpm/nradanm6.pdf http://www.math.muni.cz/~plch/nkpm/nradanm8.pdf (Just click on

[NTG-context] Metapost animation

2004-09-13 Thread Michal Kvasnicka
Good evening. First of all I want to thank to Mr. Hagen for his last answer. I will check your last code of balanced columnsets at home (with the newest ConTeXt). As for your correcting code for ordinary collumns, I have tried it with three different types of my documents, and it worked well.