src/TerminalObject/Dynamic/Animation/Keyframe.php
public function exitTo($lines, $direction)
    {
        $lines       = $this->adjustLines($lines, $direction);
        $line_method = $this->getLineMethod($direction);

        $direction_keyframes = $this->getDirectionFrames($direction, $lines, $line_method);

        $keyframes   = array_fill(0, 4, $lines);
        $keyframes   = array_merge($keyframes, $direction_keyframes);
        $keyframes[] = array_fill(0, count($lines), '');

        return $keyframes;
    }
public function exitTo($lines, $direction)
    {
        $lines       = $this->adjustLines($lines, $direction);
        $line_method = $this->getLineMethod($direction);

        $direction_keyframes = $this->getDirectionFrames($direction, $lines, $line_method);

        $keyframes   = array_fill(0, 4, $lines);
        $keyframes   = array_merge($keyframes, $direction_keyframes);
        $keyframes[] = array_fill(0, count($lines), '');

        return $keyframes;
    }
public function exitTo ( $ lines , $ direction ) { $ lines = $ this -> adjustLines ( $ lines , $ direction ) ; $ line_method = $ this -> getLineMethod ( $ direction ) ; $ direction_keyframes = $ this -> getDirectionFrames ( $ direction , $ lines , $ line_method ) ; $ keyframes = array_fill ( 0 , 4 , $ lines ) ; $ keyframes = array_merge ( $ keyframes , $ direction_keyframes ) ; $ keyframes [ ] = array_fill ( 0 , count ( $ lines ) , '' ) ; return $ keyframes ; }
Get the exit keyframes for the desired direction

@param array $lines
@param string $direction

@return array
Get the exit keyframes for the desired direction