Bugfix in search_for_outside_edge routine.
[voro++.git] / branches / 2d / examples / extra / lloyd_movie.pl
blobdd5b565ef19059a568e0ab9edfed2ce0455ca729
1 #!/usr/bin/perl
3 # Loop over the frames
4 foreach $f (0..256) {
6 # Create the filename
7 $fn=sprintf "lloyd_output/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";