Advertisement
Guest User

Untitled

a guest
Feb 2nd, 2010
1,075
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.83 KB | None | 0 0
  1.             for($k=1;$k<$rounds+1;$k++) {
  2.                    
  3.                     $currLeftDraw = 200*($k-1);
  4.                     $currRightDraw = ($columns-1)*200-200*($k-1);
  5.                     $spacing=60*($k-1)*($k-1);
  6.                     $takeAway=0;
  7.                     if($k>2)
  8.                             $takeAway=30;
  9.                     if($k==1)
  10.                             $spacing = 0;
  11.                     for($i=0;$i<$sizePlayers/(pow(2,$k));$i++) {
  12.                             $yPos = $i*60+($i+0.5)*$spacing-$takeAway;
  13.                             imagefilledpolygon($im,$this->getPoly($currLeftDraw,$yPos),6,$bg);
  14.                     imagepolygon($im,$this->getPoly($currLeftDraw,$yPos),6,$outline);
  15.                    
  16.                         imagefilledpolygon($im,$this->getPoly($currRightDraw,$yPos),6,$bg);
  17.                         imagepolygon($im,$this->getPoly($currRightDraw,$yPos),6,$outline);
  18.                     }
  19.             }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement