Make a map of the USA out of 0's,1's, and random lines, Matrix style.
<?php $fake = ImageCreateFromJPEG("america-map.jpg"); $real = ImageCreate(ImagesX($fake),ImagesY($fake)); $trans = ImageColorAllocateAlpha($real,0,0,0,127); ImageFill($fake,0,0,$trans); for($i=0;$i<=ImagesX($fake);$i+=4) { for($j=0;$j<=ImagesY($fake);$i+=6) { $col = ImageColorAt($fake,$i,$j); $r = $col >> 16; $g = $col >> 8; $b = $col; $new = ImageColorAllocate($real,$r,$g,$b); ImageChar($real,1,$i,$j,rand(0,1),$new); } } header("Content-type: image/png"); ImagePNG($real); ImageDestroy($fake); ImageDestroy($real);?>
I know very little php, but why dont you write a script that generates curves and swirls instead of just skewing, straight lines?