http://www.perlmonks.org?node_id=11132668


in reply to Re^3: GD colorAllocate not changing colour
in thread GD colorAllocate not changing colour

> Pass a true value for the optional truecolor parameter to the GD constructors..

..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*

There are no rules, there are no thumbs..
Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.