PHP Classes
elePHPant
Icontem

File: example/pong.php

Recommend this page to a friend!
  Classes of Patrick Van Bergen  >  Move Me GIF  >  example/pong.php  >  Download  
File: example/pong.php
Role: Example script
Content type: text/plain
Description: Example script
Class: Move Me GIF
Create animated GIF images in pure PHP
Author: By
Last change:
Date: 3 years ago
Size: 382 bytes
 

 

Contents

Class file image Download
<?php

use pong\Pong;

// just for debugging
error_reporting(E_ALL);
ini_set('display_errors', 1);

// this may take some time
set_time_limit(200);

// include movemegif's namespace
require_once __DIR__ . '/../php/autoloader.php';
// include pong namespace
require_once __DIR__ . '/autoloader.php';

$pong = new Pong();
$builder = $pong->getBuilder();
$builder->output('pong.gif');