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.
In reply to Re: GD Simple, Palette Background
by roboticus
in thread GD Simple, Palette Background
by watari_exd
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |