Anyway, here's the code:
http://code.suck-o.com/38845
And an example: http://gogeta.homeip.net/img
To generate that image, all i had to do was put this code in the index file:
Code: Select all
include("Image.php");
$z = 32*20;
$img = new Image($z);
$img->setTileType('grass', 8);
$img->setTileDir('./tiles/');
$jpeg = $img->Generate();
header('Content-type: image/jpeg');
imagejpeg($jpeg);
^_^
Enjoy.
Edit:
I forgot to mention that the code will put out a jpeg but it will only read GIF images for the tiles. It also supports transparency in the gif images.