Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^4: GD colorAllocate not changing colour

by Discipulus (Abbot)
on May 16, 2021 at 17:10 UTC ( #11132668=note: print w/replies, xml ) Need Help??


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.

Replies are listed 'Best First'.
Re^5: GD colorAllocate not changing colour
by Your Mother (Archbishop) on May 16, 2021 at 18:38 UTC

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11132668]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (2)
As of 2021-09-16 19:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?