From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/58164 Path: news.gmane.org!not-for-mail From: Troy Henderson Newsgroups: gmane.comp.tex.context Subject: MetaPost Animation Date: Thu, 15 Apr 2010 12:53:12 -0500 Message-ID: Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1271354024 29068 80.91.229.12 (15 Apr 2010 17:53:44 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 15 Apr 2010 17:53:44 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Thu Apr 15 19:53:42 2010 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([195.12.62.10]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1O2TG0-0004So-1P for gctc-ntg-context-518@m.gmane.org; Thu, 15 Apr 2010 19:53:40 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 4AAC0C9C50; Thu, 15 Apr 2010 19:53:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id fUpkUeGChUo5; Thu, 15 Apr 2010 19:53:26 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 9A9DAC9C8C; Thu, 15 Apr 2010 19:53:26 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 88B46C9C8C for ; Thu, 15 Apr 2010 19:53:25 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id TgljWypzCGq9 for ; Thu, 15 Apr 2010 19:53:14 +0200 (CEST) Original-Received: from mail-iw0-f172.google.com (mail-iw0-f172.google.com [209.85.223.172]) by balder.ntg.nl (Postfix) with ESMTP id 8A322C9C50 for ; Thu, 15 Apr 2010 19:53:14 +0200 (CEST) Original-Received: by iwn2 with SMTP id 2so717500iwn.4 for ; Thu, 15 Apr 2010 10:53:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:received:message-id :subject:from:to:content-type; bh=Hsq82gdwFg+u8ViLlfYYJONQK/W5+noYKQPFd8IN+7k=; b=USiCtTFI+K7Ayq77ZwtJkkNgUa1VdQjdRATOndh2OVpk+RTtPnuuff/ReRGxSLIe37 kceag2OrYy1tyyTLz3IbO4c8IpKyHOe3xmXKYANhQ2qFbCt6rX7DEOjM5RN51HzX9kzI 0Cnhzxa8haVptkmvzDanEOVCphJmucCKmL5a4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=WncIEyLLAvpU1IP90wE5RazvJMxkoFWdOVvvvXaBayt94la0jzug9PY9KphmN2KpAN LO1YKTB90lOP6HbY4V6VtQIN4/y1cljSijSxvQqEYk7qyfdzFXjRSEb/5tO5umGmIqsU 1Za9OU3D9kZJlXbqcGHt+4oQmc8Kr6YEjCgSw= Original-Received: by 10.231.152.133 with HTTP; Thu, 15 Apr 2010 10:53:12 -0700 (PDT) Original-Received: by 10.231.183.203 with SMTP id ch11mr175723ibb.47.1271353992688; Thu, 15 Apr 2010 10:53:12 -0700 (PDT) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.12 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 Xref: news.gmane.org gmane.comp.tex.context:58164 Archived-At: 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 ___________________________________________________________________________________