Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for($k=1;$k<$rounds+1;$k++) {
- $currLeftDraw = 200*($k-1);
- $currRightDraw = ($columns-1)*200-200*($k-1);
- $spacing=60*($k-1)*($k-1);
- $takeAway=0;
- if($k>2)
- $takeAway=30;
- if($k==1)
- $spacing = 0;
- for($i=0;$i<$sizePlayers/(pow(2,$k));$i++) {
- $yPos = $i*60+($i+0.5)*$spacing-$takeAway;
- imagefilledpolygon($im,$this->getPoly($currLeftDraw,$yPos),6,$bg);
- imagepolygon($im,$this->getPoly($currLeftDraw,$yPos),6,$outline);
- imagefilledpolygon($im,$this->getPoly($currRightDraw,$yPos),6,$bg);
- imagepolygon($im,$this->getPoly($currRightDraw,$yPos),6,$outline);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement