From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/20435 Path: news.gmane.org!not-for-mail From: Mojca Miklavec Newsgroups: gmane.comp.tex.context Subject: Re: Metapost animation Date: Thu, 19 May 2005 16:28:02 +0200 Message-ID: <428CA272.8090704@gmail.com> References: <4145D194.5040604@econ.muni.cz> <41471D63.4050108@wxs.nl> <4147440F.7090702@econ.muni.cz> <4147FBE1.5060607@wxs.nl> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1116513273 22650 80.91.229.2 (19 May 2005 14:34:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 19 May 2005 14:34:33 +0000 (UTC) Original-X-From: ntg-context-bounces@ntg.nl Thu May 19 16:34:21 2005 Return-path: Original-Received: from ronja.vet.uu.nl ([131.211.172.88] helo=ronja.ntg.nl) by ciao.gmane.org with esmtp (Exim 4.43) id 1DYm29-0004PO-P5 for gctc-ntg-context-518@m.gmane.org; Thu, 19 May 2005 16:29:57 +0200 Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 795DA12837; Thu, 19 May 2005 16:30:51 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 16170-01; Thu, 19 May 2005 16:30:51 +0200 (CEST) Original-Received: from ronja.vet.uu.nl (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id CA8C21278D; Thu, 19 May 2005 16:28:09 +0200 (CEST) Original-Received: from localhost (localhost.localdomain [127.0.0.1]) by ronja.ntg.nl (Postfix) with ESMTP id 76E6B1278D for ; Thu, 19 May 2005 16:28:08 +0200 (CEST) Original-Received: from ronja.ntg.nl ([127.0.0.1]) by localhost (smtp.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 16052-01-3 for ; Thu, 19 May 2005 16:28:07 +0200 (CEST) Original-Received: from avs2.arnes.si (avs2.arnes.si [193.2.1.75]) by ronja.ntg.nl (Postfix) with ESMTP id 8F41C12784 for ; Thu, 19 May 2005 16:28:07 +0200 (CEST) Original-Received: from localhost (avs2.arnes.si [193.2.1.75]) by avs2.arnes.si (Postfix) with ESMTP id 419E926E261 for ; Thu, 19 May 2005 16:28:07 +0200 (CEST) Original-Received: from avs2.arnes.si ([193.2.1.75]) by localhost (avs2.arnes.si [193.2.1.75]) (amavisd-new, port 10024) with ESMTP id 61908-01 for ; Thu, 19 May 2005 16:28:07 +0200 (CEST) Original-Received: from [194.249.10.193] (ar20-1i.dial-up.arnes.si [194.249.10.193]) by avs2.arnes.si (Postfix) with ESMTP id 072FF26E03F for ; Thu, 19 May 2005 16:28:05 +0200 (CEST) User-Agent: Mozilla/4.5-4.75 (Windows; U; Windows NT 5.1; sl-SI; rv:1.4) Gecko/20030624 Netscape/7.1 X-Accept-Language: sl, en, en-us, de Original-To: mailing list for ConTeXt users In-Reply-To: <4147FBE1.5060607@wxs.nl> X-Virus-Scanned: by amavisd-new at arnes.si X-Virus-Scanned: amavisd-new at ntg.nl X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.5 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: ntg-context-bounces@ntg.nl Errors-To: ntg-context-bounces@ntg.nl X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on smtp.ntg.nl X-Virus-Scanned: amavisd-new at ntg.nl Xref: news.gmane.org gmane.comp.tex.context:20435 X-Report-Spam: http://spam.gmane.org/gmane.comp.tex.context:20435 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, changing one frame >> to another each 1/n second to simulate a smoth motion like in a cinema? > > sure, you can let a javascript toggle the states; however, small steps > (<1 sec) are not to be trusted in precission, since they also depend on > the machine; they also kind of block other actions since there is no > concept of animation in pdf (apart from svg, which is poorly > implemented/integrated). > Another method is demonstrated in the 'dante XV' presentation (runs > slightly faster on a mac than on windows); > Hans 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 produced the graphics as explained in the section 13.6 of the metafun manual, but I would like to press the button only once at the beginning of the animation instead of twenty times. Thank you very much, Mojca Miklavec