battles/mg2.php
Igor Barkov [iwork] 2767cf3665 Code cleanup
2018-10-31 19:34:22 +02:00

10 lines
345 B
PHP

<?php
$im1=imageCreateFromGIF("i/sh/".$_GET['i']);
$colorcount = imagecolorstotal($im1);
$size_x=imageSX($im1);
$size_y=imageSY($im1);
imageColorSet($im1, 1, 198, 64, 1);
$transparentcolor = imagecolortransparent($im1);
imagefilledrectangle($im1,2,($size_y-$size_y*$_GET['p']/100),4,$size_y,1);
Header("Content-type: image/gif");
imageGIF($im1);