src/TerminalObject/Dynamic/Animation/Keyframe.php
protected function currentTopLine($lines, $total_lines, $current)
    {
        $keyframe = array_slice($lines, -$current, $current);

        return array_merge($keyframe, array_fill(0, $total_lines - $current, ''));
    }
protected function currentTopLine($lines, $total_lines, $current)
    {
        $keyframe = array_slice($lines, -$current, $current);

        return array_merge($keyframe, array_fill(0, $total_lines - $current, ''));
    }
protected function currentTopLine ( $ lines , $ total_lines , $ current ) { $ keyframe = array_slice ( $ lines , - $ current , $ current ) ; return array_merge ( $ keyframe , array_fill ( 0 , $ total_lines - $ current , '' ) ) ; }
Slice off X number of lines from the bottom and fill the rest with empty strings

@param array $lines
@param integer $total_lines
@param integer $current

@return array
Slice off X number of lines from the bottom and fill the rest with empty strings