<?php
header
("Content-type: image/jpeg"); 
$im = imagecreatetruecolor(400, 370);
$red = imagecreatefromjpeg ('red90.jpg');
$green = imagecreatefromjpeg ('green90.jpg');
$purple = imagecreatefromjpeg ('purple90.jpg');
$aqua = imagecreatefromjpeg ('aqua90.jpg');
$gold = imagecreatefromjpeg('gold90.jpg');
$wB180 = imagecreatefromjpeg('wB180.jpg');
$wG180 = imagecreatefromjpeg('wG180.jpg');
$mod = imagecreatefromjpeg('imcopy1a.jpg');
//MAKE A ROW OF RED ACROSS PAGE
imagecopy($im, $red, 0, 0, 0, 0, 50, 500);
imagecopy($im, $red, 50, 0, 0, 0, 50, 500);
imagecopy($im, $red, 100, 0, 0, 0, 50, 500);
imagecopy($im, $red, 150, 0, 0, 0, 50, 500);
imagecopy($im, $red, 200, 0, 0, 0, 50, 500);
imagecopy($im, $red, 250, 0, 0, 0, 50, 500);
imagecopy($im, $red, 300, 0, 0, 0, 50, 500);
imagecopy($im, $red, 350, 0, 0, 0, 50, 500);
//ADD COLORS DOWN 30 FROM TOP AND UP 30 FROM BOTTOM
imagecopy($im, $green, 25, 30, 0, 0, 50, 240);
imagecopy($im, $purple, 50, 60, 0, 0, 50, 180);
imagecopy($im, $aqua, 75, 90, 0, 0, 50, 120);
imagecopy($im, $gold, 100,120, 0, 0, 50, 60);
imagecopy($im, $green, 325, 30, 0, 0, 50, 240);
imagecopy($im, $purple, 300, 60, 0, 0, 50, 180);
imagecopy($im, $aqua, 275, 90, 0, 0, 50, 120);
imagecopy($im, $gold, 250, 120, 0, 0, 50, 60);
Imagejpeg ($im);
imagedestroy($im);
imagedestroy($red);
imagedestroy($green); 
imagedestroy($purple); 
imagedestroy($aqua); 
imagedestroy($gold);
imagedestroy($wB180);
imagedestroy($wG180);
imagedestroy($mod);
?>