Moved from Php to Php4 to fix naming kludge

git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk@5033 626c5289-ae23-0410-ae9c-e8d60b6d4f22
This commit is contained in:
William S Fulton 2003-09-01 14:37:40 +00:00
commit 29f9755c9d
13 changed files with 313 additions and 2 deletions

View file

@ -0,0 +1,32 @@
<?
# Draw some simple shapes
print "Drawing some basic shapes\n";
require "simple.php";
$cmap = new_ColorMap();
$f = new_FrameBuffer(400,400);
# Clear the picture
FrameBuffer_clear($f,BLACK);
# Make a red box
FrameBuffer_box($f,40,40,200,200,RED);
# Make a blue circle
FrameBuffer_circle($f,200,200,40,BLUE);
# Make green line
FrameBuffer_line($f,10,390,390,200, GREEN);
# Write an image out to disk
FrameBuffer_writeGIF($f,$cmap,"image.gif");
print "Wrote image.gif\n";
delete_FrameBuffer($f);
delete_ColorMap($cmap);
?>