Algorithm-Easing

 view release on metacpan or  search on metacpan

lib/Algorithm/Easing.pm  view on Meta::CPAN

    Bounce
    Linear
    Cubic
    Quadratic
    Quartinion
    Quintonion
    Sinusoidal
    Backdraft
    Circular

For ease of use, there is an included Mediator class.  The Mediator class permits the programmer to select from the spread of easing functions through a single class name.

=cut

=head1 METHODS

=head2 ease_none
    usage :
    
        Parameters : 
            Let t be time,

t/1.t  view on Meta::CPAN

use Algorithm::Easing::Quadratic;
use Algorithm::Easing::Quartinion;
use Algorithm::Easing::Quintonion;
use Algorithm::Easing::Sinusoidal;
use Algorithm::Easing::Backdraft;

use Time::HiRes qw(usleep);

use feature 'say';

select (STDOUT);
$|++;

sub test_ease_in {
    my ($name, $ease, $max) = @_;
    # total time for eased translation as a real positive integer value
    my $d = 1.0;
    
    # begin
    my $b = 0;
    



( run in 1.038 second using v1.01-cache-2.11-cpan-49f99fa48dc )