the_raculaa adlı üyeden alıntı: mesajı görüntüle
Kardeş biz resim ile değilde renk kotlari ile doluluk oranına göre renk değiştirmeye çalışıyoruz konunun başından okursan görürsün yinede teşekürler.


Tamam 'kardeş' bende size renk 'kotlarini' değiştireni yazayım
sende her satirdaki $color karisindaki rgb renk 'kotlarini' degistirirsin

<?php
/*
    @web  : http://yns.linuxboyz.com
    @mail : yns@linuxboyz.com
    @for  : http://www.oyunkurucusu.com 
*/
 
    if(isset($_GET['load']) && !empty($_GET['load']) && isset($_GET['maxplayer']) && !empty($_GET['maxplayer']))
    {
		$load = intval($_GET['load']);
        $a = ($_GET['load'] * 100) / $_GET['maxplayer'];
        $_GET['load'] = $a / 3;
        $_GET['load'] = floor($_GET['load']);
 
 
        header('Content-Type:image/png');
        $im = imagecreate(35,10);
        $black = imagecolorallocate($im, 0, 0, 0);
		if($load > 0 && <= 5)
			$color = imagecolorallocate($im,255,215,0); # 225 215 0 'i RGB renk "KOTUDUR" her satırda aynısını kullandım
		elseif($load > 5 && <= 10)
			$color = imagecolorallocate($im,255,215,0);
		elseif($load > 10 && <= 15)
			$color = imagecolorallocate($im,255,215,0);
		elseif($load > 15 && <= 20)
			$color = imagecolorallocate($im,255,215,0);
		elseif($load > 20 && <= 25)
			$color = imagecolorallocate($im,255,215,0);
		elseif($load > 25 && <= 32)
			$color = imagecolorallocate($im,255,215,0);
		else
			$color = imagecolorallocate($im,255,215,0);
	   
			
    
        imagefill($im, 0, 0, $black);
        for($i = 1 ; $i < $_GET['load'] ; $i++)
            imageline($im,$i,2,$i,7,$color);
 
        imagepng($im);
        imagedestroy($im);
    }
?>