ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Metapost animation
@ 2004-09-13 16:57 Michal Kvasnicka
  2004-09-13 17:14 ` Henning Hraban Ramm
                   ` (2 more replies)
  0 siblings, 3 replies; 18+ messages in thread
From: Michal Kvasnicka @ 2004-09-13 16:57 UTC (permalink / raw)


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. 
Maybe this is the final solution of the problem. I will try it with more 
documents and let you know, anyway.

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 the `Spustit animaci' button.)

Is it possible to do it simply in the ConTeXt? Of course I may break 
down the mechanism of widgets and write my own JavaScript (I don't know 
how to do timing), but isn't there some special macro for animating 
series of figures? It would be great.

If so, is Acrobat Reader fast enough to simulate this way the nice 
feature of MS PowerPoint---curves and shapes that are drawn by pieces, 
or that appear somewhere and then go to its final location? (This is 
quite instructive in economics, because you can easily notice which 
curve is drawn first, what second, and so on.) How can I do it?

With many greetings and thanks
Michal Kvasnicka

^ permalink raw reply	[flat|nested] 18+ messages in thread
[parent not found: <20050330203818.ADE29128CA@ronja.ntg.nl>]
* MetaPost Animation
@ 2010-04-15 17:53 Troy Henderson
  2010-04-16  7:36 ` Boštjan Vesnicer
  0 siblings, 1 reply; 18+ messages in thread
From: Troy Henderson @ 2010-04-15 17:53 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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 MetaPost code in a separate source
file, running MetaPost, and using \externalfigure.  The following
MetaPost sample code generate 21 graphics images  (numbered .0 to
.20), but I have no idea how to have ConTeXt generate these graphics
without a manual external MetaPost run and have them included in a way
that is consistent with \startuseMPgraphic or similar.

Thanks in advance,

Troy Henderson

path p,q;
p:=fullcircle scaled 72;
L:=length p;
N:=20;
for n=0 upto N:
	beginfig(n);
		q:=subpath (0,n/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 (-0.5,-0.5) scaled 75;
	endfig;
endfor;
end


-- 
Troy Henderson
Assistant Professor
Department of Mathematics
University of Mobile
http://www.tlhiv.org
___________________________________________________________________________________
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://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 18+ messages in thread

end of thread, other threads:[~2010-04-16 14:43 UTC | newest]

Thread overview: 18+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-09-13 16:57 Metapost animation Michal Kvasnicka
2004-09-13 17:14 ` Henning Hraban Ramm
2004-09-13 19:40 ` Patrick Gundlach
2004-09-14  8:27   ` Michal Kvasnicka
2004-09-14  8:21     ` Patrick Gundlach
2004-09-14 16:33 ` Hans Hagen
2004-09-14 19:18   ` Michal Kvasnicka
2004-09-15  8:22     ` Hans Hagen
2004-09-16 17:05       ` Michal Kvasnicka
2005-05-19 14:28       ` Mojca Miklavec
2005-05-19 14:39         ` luigi.scarso
     [not found] <20050330203818.ADE29128CA@ronja.ntg.nl>
2005-03-31  1:48 ` Beginnner's question: fumbling with font finding failures Paul R Martin
2005-03-31 11:53   ` Thomas A.Schmitz
2005-03-31 12:50     ` Metapost animation Albrecht Kauffmann
2010-04-15 17:53 MetaPost Animation Troy Henderson
2010-04-16  7:36 ` Boštjan Vesnicer
2010-04-16  7:54   ` Hans Hagen
2010-04-16 12:51     ` Troy Henderson
2010-04-16 14:19       ` Boštjan Vesnicer
2010-04-16 14:43       ` Wolfgang Schuster

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).