source: trunk/xgraph/jpgraph/Examples/checkgd2.php @ 42

Last change on this file since 42 was 42, checked in by marrucho, 10 years ago
File size: 555 bytes
Line 
1<?php // content="text/plain; charset=utf-8"
2$im =  imagecreatetruecolor ( 300, 200);
3$black = imagecolorallocate ($im,  0, 0, 0);
4$lightgray = imagecolorallocate ($im,  230, 230, 230);
5$darkgreen = imagecolorallocate ($im,  80, 140, 80);
6$white = imagecolorallocate ($im,  255, 255, 255);
7
8imagefilledrectangle ($im,0,0,299,199 ,$lightgray);
9imagerectangle ($im,0,0,299,199,$black);
10imagefilledellipse ($im,150,100,210,110,$white);
11imagefilledellipse ($im,150,100,200,100,$darkgreen);
12header ("Content-type: image/png");
13imagepng ($im);
14?>
Note: See TracBrowser for help on using the repository browser.