POLYLINES


$width = 200;
$height = 200;

$im = imagecreate($width,$height);
$background_color = imagecolorallocate($im, 0,0,200);
imagecolortransparent($im, $background_color);
$gold = imagecolorallocate($im, 255, 200, 0);
imagesetthickness($im, 4);
$x2 = 0;
while ($x2 <= 250) {
$x2 = $x2 + 9;
$color=imagecolorallocate($im, 150, 0, $x2);

$points = array(50,50, 100,50, 150,100, 150, 150, 100,200, 50,200, 0,150, 0,100);
imagepolygon($im, $points, 8, $gold);

$points = array(100,0, 150,0, 200,50, 200,100, 150,150, 100,150, 50,100, 50,50);
imagepolygon($im, $points, 8, $gold);

$points = array(50,0, 100,0, 150,50, 150, 100, 100,150, 50,150, 0,100, 0,50);
imagepolygon($im, $points, 8, $color);

$points = array(100,50, 150,50, 200,100, 200, 150, 150,200, 100,200, 50,150, 50,100);
imagepolygon($im, $points, 8, $color);
}
header("Content-type: image/gif");
imagegif($im);
imagedestroy($im);
?>

TRIANGLE1


$width = 300;
$height = 300;

$im = imagecreate($width,$height);
$background_color = imagecolorallocate($im, 0,0,200);
imagecolortransparent($im, $background_color);
$white = imagecolorallocate($im,255,255,255);
$black = imagecolorallocate($im, 0, 0, 0);
$yellow = imagecolorallocate($im, 255, 255, 0);
$gold = imagecolorallocate($im, 255, 200, 0);
$burly = imagecolorallocate($im, 222, 182, 135);
$blue = imagecolorallocate($im, 0,0,25);
imagesetthickness($im, 4);
$x2 = 0;
while ($x2 <= 250) {
$x2 = $x2 + 9;
$color=imagecolorallocate($im, 150, 0, $x2);

$x=-50;
$y=250;
$z=-50;
while($x<=$y){
$x=$x+50;
$points = array(
$x, 0, $x, 300, 150, 300);
imagepolygon($im, $points, 3, $color);
}



}
header("Content-type: image/gif");
imagegif($im);
imagedestroy($im);
?>

TRIANGLE2

$width = 300;
$height = 300;
$im = imagecreate($width,$height);
$background_color = imagecolorallocate($im, 0,0,200);
imagecolortransparent($im, $background_color);
//SET LINE THICKNESS
imagesetthickness($im, 4);
//SET THE COLOR
$x2 = 0;
while ($x2 <= 250) {
$x2 = $x2 + 9;
$color=imagecolorallocate($im, 150, $x2, 82);
//DRAW THE TRIANGLES
$x=-50;
$y=250;

while($x<=$y){
$x=$x+50;
$points = array(
$x, 100, $x, 150, $x, 300, 150, 0);
imagepolygon($im, $points, 4, $color);
}
}
header("Content-type: image/gif");
imagegif($im);
imagedestroy($im);
?>

TRIANGLE3

$width = 300;
$height = 300;
$im = imagecreate($width,$height);
$background_color = imagecolorallocate($im, 0,0,200);
imagecolortransparent($im, $background_color);
//SET LINE THICKNESS
imagesetthickness($im, 4);
//SET THE COLOR
$x2 = 0;
while ($x2 <= 250) {
$x2 = $x2 + 9;
$color=imagecolorallocate($im, 150, $x2, 82);
//DRAW THE TRIANGLES
$x=0;
$y=250;

while($x<=$y){
$x=$x+20;
$points = array(
$x, 300-$x, 150, 0+$x, 300-$x, 300-$x);
imagepolygon($im, $points, 3, $color);
}
}
header("Content-type: image/gif");
imagegif($im);
imagedestroy($im);
?>

TRIANGLE4

$width = 300;
$height = 300;
$im = imagecreate($width,$height);
$background_color = imagecolorallocate($im, 0,0,200);
imagecolortransparent($im, $background_color);
//SET LINE THICKNESS
imagesetthickness($im, 4);
//SET THE COLOR
$x2 = 0;
while ($x2 <= 250) {
$x2 = $x2 + 9;
$color=imagecolorallocate($im, 150, $x2, 82);
//DRAW THE TRIANGLES
$x=0;
$y=260;

while($x<=$y){
$x=$x+20;
$points = array(
$x, 300, $x, 0, 300-$x, 300);
imagepolygon($im, $points, 3, $color);
}
}
header("Content-type: image/gif");
imagegif($im);
imagedestroy($im);
?>

TRIANGLE5

$width = 300;
$height = 300;
$im = imagecreate($width,$height);
$background_color = imagecolorallocate($im, 0,0,200);
imagecolortransparent($im, $background_color);
//SET LINE THICKNESS
imagesetthickness($im, 4);
//SET THE COLOR
$x2 = 0;
while ($x2 <= 250) {
$x2 = $x2+5;
$color=imagecolorallocate($im, $x2, $x2, 0);
//DRAW THE TRIANGLES
$x=0;
$y=260;

while($x<=$y){
$x=$x+20;
$points = array(
0, 300, 150, 0+$x, 300, 300);
imagepolygon($im, $points, 3, $color);
}
}
header("Content-type: image/gif");
imagegif($im);
imagedestroy($im);
?>