Just another Perl shrine | |
PerlMonks |
Re^3: GD colorAllocate not changing colour -- working exampleby Discipulus (Canon) |
on May 16, 2021 at 19:05 UTC ( [id://11132676]=note: print w/replies, xml ) | Need Help?? |
Hello Bod, letting apart the humor (which incidentally make your post harder to understand for non native english speakers.. :), you never set $resize background to white! I didnt follow all your geometry calculus, but be aware the the default background for a GD image is black:
The above print a nice black image. Simplfying the whole I think you can start from something like the following code, which does what you are looking for
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.
In Section
Seekers of Perl Wisdom
|
|