battles/mg2.php

11 lines
348 B
PHP
Raw Normal View History

2018-01-28 16:40:49 +00:00
<?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);
?>