<?php
$image
= imagecreatetruecolor(700, 200);
$background_color
= imagecolorallocate(
$image
, 255, 255, 255);
imagefill(
$image
, 0, 0,
$background_color
);
$red
= imagecolorallocate(
$image
, 255, 0, 0);
$green
= imagecolorallocate(
$image
, 0, 255, 0);
$style
=
array
(
$red
,
$red
,
$red
,
$red
,
$red
,
$ren
,
$red
,
$green
,
$green
,
$green
);
imagesetstyle(
$image
,
$style
);
$values
=
array
(
150, 150,
450, 150,
150, 50,
);
imagepolygon(
$image
,
$values
, 3, IMG_COLOR_STYLED);
header(
'Content-type: image/png'
);
imagepng(
$image
);
?>