Video::Delay::Array - Video::Delay class for predefined list of delays.
use Video::Delay::Array; my $obj = Video::Delay::Array->new(%parameters); my $delay = $obj->delay;
new(%parameters)
Constructor
array
Array of predefined delays in miliseconds. Default value is [1000, 2000, 3000].
loop
Loop flag. Default value is 1.
delay()
Returns delay from array defined by 'array' parameter in miliseconds. Affected by 'loop' parameter.
new(): From Class::Utils::set_params(): Unknown parameter '%s'.
use strict; use warnings; use Video::Delay::Array; # Object. my $obj = Video::Delay::Array->new( 'array' => [1000, 2000], 'loop' => 1, ); # Print delay. print $obj->delay."\n"; print $obj->delay."\n"; print $obj->delay."\n"; # Output: # 1000 # 2000 # 1000
Class::Utils.
Perl classes for delays between frames generation.
https://github.com/michal-josef-spacek/Video-Delay
Michal Josef Špaček mailto:skim@cpan.org
http://skim.cz
© 2012-2020 Michal Josef Špaček BSD 2-Clause License
0.07
To install Video::Delay, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Video::Delay
CPAN shell
perl -MCPAN -e shell install Video::Delay
For more information on module installation, please visit the detailed CPAN module installation guide.