Help for this page
use strict; use warnings; use PDL; ... $frames->range($coords, [$ballsize,$ballsize,1], 't') .= $val; $frames = $frames->dummy(0, 3)->copy; # now make the movie $frames->wmpeg('bounce.gif'); # or bounce.mp4, ffmpeg deals OK
perl scriptname.pl && animate bounce.gif