# Art And Php Battle

**URL:** <https://forum.kirupa.com/t/art-and-php-battle/236461>\
**Category:** design\
**Created:** [August 21, 2007, 5:29am UTC](https://forum.kirupa.com/t/art-and-php-battle/236461 "2007-08-21T05:29:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![vietskynet](https://avatars.discourse-cdn.com/v4/letter/v/e19b73/32.png) [@vietskynet](https://forum.kirupa.com/u/vietskynet)\
**Post date:** [August 21, 2007, 5:29am UTC](https://forum.kirupa.com/t/art-and-php-battle/236461/1 "2007-08-21T05:29:10Z")

</div>

I am a beginner :ponder::ponder::ponder::ponder:  
I like php and art :player::player::player:  
So i open this battle

Method:  
We use PHP code to create pictures , only PHP code m don;t use stock …:disco::disco:

Ex:  
with this code :

```php

<?php
header("Content-type: image/gif");

$image = imagecreate(400,200);
$color = imagecolorallocate($image,125,201,89);
$color_2 = imagecolorallocate($image,125,210,89);
$color_3 = imagecolorallocate($image,125,220,89);
$color_4 = imagecolorallocate($image,125,230,89);
$color_5 = imagecolorallocate($image,125,235,89);
$color_6 = imagecolorallocate($image,125,235,255);

$color_7 = imagecolorallocate($image,125,225,89);
$color_8 = imagecolorallocate($image,125,215,89);
$color_9 = imagecolorallocate($image,125,175,90);

imagearc($image,0,99,500,400,0,360,$color_2);
imagefill($image,0,99,$color_2);

imagearc($image,0,99,300,400,0,360,$color_3);
imagefill($image,0,99,$color_3);

imagearc($image,2,99,200,400,0,360,$color_4);
imagefill($image,2,99,$color_4);

imagearc($image,3,99,100,400,0,360,$color_5);
imagefill($image,3,99,$color_5);

imagearc($image,200,100,100,100,0,360,$color_3);
imagefill($image,200,100,$color_3);

imagearc($image,250,100,120,120,0,360,$color_7);
imagefill($image,250,100,$color_7);

imagearc($image,300,100,140,140,0,360,$color_8);
imagefill($image,300,100,$color_8);

imagearc($image,350,100,180,180,0,360,$color_9);
imagefill($image,350,100,$color_9);

imagegif($image);

?>

```

We can create this picture, (it is not good beacause this is an example):trout::trout::trout::trout:

![](http://img65.imageshack.us/img65/743/phpqo6.gif)

Anyone join ???  
So funny :hoser::hoser::hoser::hoser::hoser:
