Reset platonic code.
[voro++.git] / branches / 2d_boundary / examples / lloyd_movie.pl
blob49cf92b10a47bac7c29ecd472aaacd940a31a1cd
1 #!/usr/bin/perl
3 # Loop over the frames
4 foreach $f (0..256) {
6 # Create the filename
7 $fn=sprintf "lloyd/fr_%04d.png",$f;
9 # Create a temporary gnuplot file to render the frame
10 open A,"lloyd_movie.gnuplot";
11 open B,">temp.gnuplot";
12 while(<A>) {
13 s/FILENAME/$fn/;
14 s/N/$f/g;
15 print B;
17 close A;
18 close B;
20 # Render the frame using Gnuplot
21 `gnuplot temp.gnuplot`;
24 # Remove temporary file
25 unlink "temp.gnuplot";