src/GameOfLife/Outputs/GifOutput.php
/**
     * Initializes the output.
     *
     * @param Getopt $_options User inputted option list
     * @param Board $_board Initial board
     *
     * @throws \Exception The exception when one of the input colors is invalid
     */
Initializes the output.
@param Getopt $_options User inputted option list
@param Board $_board Initial board

@throws \Exception The exception when one of the input colors is invalid
Initializes the output . @param Getopt $_options User inputted option list @param Board $_board Initial board @throws \ Exception The exception when one of the input colors is invalid
public function startOutput(Getopt $_options, Board $_board)
    {
        parent::startOutput($_options, $_board);
        echo "Starting GIF Output...\n\n";
        try
        {
            $this->fileSystemWriter->createDirectory($this->baseOutputDirectory . "/Gif");
        }
        catch (\Exception $_exception)
        {
        }
        $frameTime = $_options->getOption("gifOutputFrameTime");
        if ($frameTime !== null) $this->frameTime = (int)$frameTime;
        else $this->frameTime = 20;
    }
public function startOutput ( Getopt $ _options , Board $ _board ) { parent :: startOutput ( $ _options , $ _board ) ; echo " Starting GIF Output... \n \n " ; try { $ this -> fileSystemWriter -> createDirectory ( $ this -> baseOutputDirectory . " /Gif " ) ; } catch ( \ Exception $ _exception ) { } $ frameTime = $ _options -> getOption ( " gifOutputFrameTime " ) ; if ( $ frameTime !== null ) $ this -> frameTime = ( int ) $ frameTime ; else $ this -> frameTime = 20 ; }
Initializes the output.
Initializes the output .
// Ignore the exception // fetch options