in reply to GD Simple, Palette Background

watari_exd:

In the docs for GD::Simple, it says that the $img->clear method clears the canvas by painting over it with the current background color. So I'd expect you should simply be able to do something like:

$img->bgcolor($your_color_variable); $img->clear(); ... the rest of your drawing code ...

...roboticus

When your only tool is a hammer, all problems look like your thumb.

Replies are listed 'Best First'.
Re^2: GD Simple, Palette Background
by watari_exd (Initiate) on Nov 08, 2017 at 05:32 UTC
    That worked beautifully. Thank you! I'm not sure how I missed that.