<?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
$i=-50;
$count=350;
while(
$i<=$count){
$i=$i+50;
imagecopy($im, $red, $i, 0, 0, 0, 50, 500);
}
//ADD WHITE ANGLES
$x=25;
$y=300;
$count=150;
while(
$x<$count){
$x=$x+25;
$y=$y-30;
imagecopy($im, $wB180, $x, $y, 0, 0, 50, 50);
}
$x=25;
$y=350;
$count=150;
while(
$x<$count){
$x=$x+25;
$y=$y-30;
imagecopy($im, $wG180, $x, $y, 0, 0, 50, 50);
}
$a=325;
$b=300;
$count=200;
while(
$a>$count){
$a=$a-25;
$b=$b-30;

imagecopy($im, $wB180, $a, $b, 0, 0, 50, 50);
}

$a=325;
$b=350;
$count=200;
while(
$a>$count){
$a=$a-25;
$b=$b-30;

imagecopy($im, $wG180, $a, $b, 0, 0, 50, 50);
}
imagecopy($im, $mod, 150, 60, 0, 0, 100, 292);
imagecopy($im, $wB180, 225, 150, 0, 0, 25, 50);
imagecopy($im, $wG180, 225, 200, 0, 0, 25, 50);
imagecopy($im, $wB180, 150, 150, 0, 0, 25, 50);
imagecopy($im, $wG180, 150, 200, 0, 0, 25, 50);


Imagejpeg ($im);
imagedestroy($im);
imagedestroy($red);
imagedestroy($green); 
imagedestroy($purple); 
imagedestroy($aqua); 
imagedestroy($gold);
imagedestroy($wB180);
imagedestroy($wG180);
imagedestroy($mod);
?>