NAME

Algorithm::Easing::Backdraft - Calculate eased translations between two positive whole integer values over time

SYNOPSIS

## with mediator

use Algorithm::Easing;
use Algorithm::Easing::Backdraft;

# this example produces traditional 'backdraft' output;

my $translation = Algorithm::Easing::Backdraft->new;

# total time for eased translation as a real positive integer value
my $d = 2.5;

# begin
my $b = 0;

# change
my $c = 240;

# time passed in seconds as a real positive integer between each frame
my $frame_time = 0.0625;

my @p = [319,0];

for(my $t = 0; $t < 2.5; $t += 0.0625) {
    $p[1] = $translation->ease_out($t,$b,$c,$d)

    # plot
    ...;
}
    Arguments : 
        t = time,
        b = begin,
        c = change,
        d = duration,
    Return :
        p = position,
        
    my $p = $obj->ease_both($t,$b,$c,$d);

    This method is used for a linear translation between two positive real whole integers using a positive real integer as the parameter for time.

    ease_in Usage :

    Arguments : 
        t = time,
        b = begin,
        c = change,
        d = duration,
    Return :
        p = position,
        
    my $p = $obj->ease_both($t,$b,$c,$d);

    This method is used for a eased translation between two positive real whole integers as an inward tween using a positive real integer as the parameter for time.

    ease_out Usage :

    Arguments : 
        t = time,
        b = begin,
        c = change,
        d = duration,
    Return :
        p = position,
        
    my $p = $obj->ease_both($t,$b,$c,$d);

    This method is used for a eased translation between two positive real whole integers as an outward tween using a positive real integer as the parameter for time.

    ease_both Usage :

    Arguments : 
        t = time,
        b = begin,
        c = change,
        d = duration,
    Return :
        p = position,
        
    my $p = $obj->ease_both($t,$b,$c,$d);

    This method is used for a eased translation between two positive real whole integers as an inward then outward tween using a positive real integer as the parameter for time.

Jason McVeigh, <jmcveigh@outlook.com>

COPYRIGHT AND LICENSE

Copyright 2016 by Jason McVeigh

This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

3 POD Errors

The following errors were encountered while parsing the POD:

Around line 93:

=over should be: '=over' or '=over positive_number'

You can't have =items (as at line 109) unless the first thing after the =over is an =item

Around line 154:

=back doesn't take any parameters, but you said =back =head1 AUTHOR

Around line 166:

=back without =over