..or simply force truecolor with the class method
use GD 2.0.33; GD::Image->trueColor(1);
Infact:
> For backwards compatibility with scripts previous versions of GD, new images created from scratch (width, height) are palette based by default.
L*
In reply to Re^4: GD colorAllocate not changing colour
by Discipulus
in thread GD colorAllocate not changing colour
by Bod
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |