<html><head><style type="text/css">body { background: black; color: #0f0; } i { font-style: normal; color: #000; }</style></head>
<body>
<pre>
<?php 
$maxx
=100; $maxy=40;

$max = 2 * $maxx+$maxy;

if(
$max > 255) $scale = 255 / $max;
else           
$scale = 1;

$colors=array('r','g','b');

$color_to_randomize=$colors[rand(0,2)];

for(
$y=0; $y<$maxy; $y++) {
  
$yper=($y/$maxy);
  echo 
"\n";

  for(
$x=0; $x<$maxx; $x++) {
    
$xper=($x/$maxx);
    
    
# # # # # # # # # # # #
    
    #$foo = $xper+$yper + ($xper<$yper ?
    #                        $xper-$yper : $yper-$xper)
    #rectangle
    
    #$foo = (($x*$x) + ($y*$y)) * ($maxx+$maxy)
    #circle
       
    
$grey = $r = $g = $b = (pow($xper,2) + pow($yper,2))    *    ($maxx+$maxy);
  
    if(
$color_to_randomize=='r')
      
$r = ($r * (rand(10,30)/10));
    elseif(
$color_to_randomize=='g')
      
$g = ($g * (rand(10,30)/10));
    else
      
$b = ($b * (rand(10,30)/10));

    
$r=cap((int)$r); $g=cap((int)$g); $b=cap((int)$b);

    
$bg = 255 - cap((int)$grey);

    
# # # # # # # # # # # #
    
    
echo "<span style=\"color: rgb($r,$g,$b); background: rgb($bg,$bg,$bg);\">f</span>";

  }
}

function 
cap($input) {
  if(
$input > 255) return 255;
  elseif(
$input < -255) return -255;
  else return 
$input;
}

?>
</pre></body></html>