<?php
$im = imagecreate(400,400);
//colors
$colorB = imagecolorallocate($im,0,100,0);//background
$colorL = imagecolorallocate($im,80,130,80);//line
$colorP = imagecolorallocate($im,0,255,255);//pic
//line
imageline($im,200,0,200,400,$colorL);
imageline($im,0,200,400,200,$colorL);
//dots array
$point1 = array(200,200,110,200,200,110);//small
$point2 = array(200,200,200,110,290,200);
$point3 = array(200,200,290,200,200,290);
$point4 = array(200,200,110,200,200,290);
$dots3 = array(0,210,210,210,210,0);//big
$dots4 = array(400,210,190,210,190,0);
$dots5 = array(400,190,190,190,190,400);
$dots6 = array(0,190,210,190,210,400);
$dots7 = array(230,230,170,170,290,110);//centar
$dots8 = array(230,230,170,170,110,290);
$dots9 = array(170,230,230,170,110,110);
$dots10 = array(170,230,230,170,290,290);
//pic
imagepolygon($im,$point1,3,$colorP);//small
imagepolygon($im,$point2,3,$colorP);
imagepolygon($im,$point3,3,$colorP);
imagepolygon($im,$point4,3,$colorP);
imagepolygon($im,$dots3,3,$colorP);//big
imagepolygon($im,$dots4,3,$colorP);
imagepolygon($im,$dots5,3,$colorP);
imagepolygon($im,$dots6,3,$colorP);
imagepolygon($im,$dots7,3,$colorP);//center
imagepolygon($im,$dots8,3,$colorP);
imagepolygon($im,$dots9,3,$colorP);
imagepolygon($im,$dots10,3,$colorP);
//image
header("content-type: image/png");
imagepng($im);
imagedestroy($im);
?>