I'm making some graphics wherein I want to loop through the RedGreenBlue color-components. Sometimes I can simply write something like:
$x = 20;
$white = $img->colorAllocate(255,$x*10,150);
And then it works. Sometimes this doesn't work so i try to deallocate f.e.:
$blue = $img->colorAllocate(0,0,25);
$blue = $img->colorAllocate(0,0,25*$teller);
But this doesn't work either. Can someone tell me how to do this? Thank you.