Quote (UberTristram @ Mon, Nov 17 2008, 03:22pm)
ok i fixed! ^^
http://nemesi.freehostia.com/fede.png
now a question:
i try to change color in code. i put "blue"
Code
//show name
ImageTTFText ($image, 9, 0, 122, 33, [B]$yellow[/B]
(here i change in blue) , $font, "HC Name: ");
ImageTTFText ($image, 9, 0, 180, 33, $red, $font, $name);
why when i save then i see the line in white? I try with other colors too....but same result: WHITE!
to change the colors you need to define them first
like these
Code
$cool = imagecolorallocate($image, 81, 86, 96);
$red = imagecolorallocate($image, 255, 0, 0);
$yellow = imagecolorallocate($image, 255, 181, 53);
it uses rgb colors
add this for a blue
Code
$blue = imagecolorallocate($image, 0, 0, 255);
then you can use blue as a color
here is a rgb color list
http://web.njit.edu/~kevin/rgb.txt.html This post was edited by SilentXer0 on Nov 17 2008 03:17pm