PHPBuilder - MATH ART 2



RSS Twitter
Snippets Graphics

MATH ART 2

by: Frat Tiryaki
|
April 12, 2001

Version: 1.0

Type: Full Script

Category: Graphics

License: GNU General Public License

Description: Uses lines to build a wireframe concav deltoid



<?
  //******* Author : Frat Tiryaki *********// 
  //*******          firat@pleksus.net.tr **//
  $width=410; 
  $height=410; 

  Header("Content-type: image/gif"); 
  $im = imagecreate($width,$height); 
  $gray=ImageColorAllocate($im,225,225,225); 

  $black=ImageColorAllocate($im,0,0,0); 

   for ($i=0;$i<=200;$i+=10) 
       { 
         imageline($im,210-$i,200,210,$i,$black); 
         imageline($im,210+$i,200,210,$i,$black); 
         imageline($im,210,210+$i,$i,200,$black); 
         imageline($im,210,410-$i,210+$i,200,$black); 
       } 
  imagePng($im); 
  ImageDestroy($im); 
?>

Comment and Contribute

Your comment has been submitted and is pending approval.

Author:
Frat Tiryaki

Comment:



Comment:

(Maximum characters: 1200). You have characters left.