elsif has asked for the wisdom of the Perl Monks concerning the following question:
Background graphics are in the same directory as rbs-blue.png, rbs-bronze.png, rbs-silver.png, rbs-gold.png.
My sample result are here: http://euphoria.arealisp.com/RBS/allgraphics.html
Despite all of my stringFT's being done in a loop, always using the same variable ($black), the graphs generate text in white and green.
So I went added code form my beta attempt which used string and gdGiantFont instead. On the first 2 examples, the text takes on the color of the border of the original background image. In the next two, the text white and blue make an appearance.
Blue. Seriously.
I've tried swapping the place of my $black and $white declarations with no results. I read somewhere that the first colorAllocate is perhaps used as a background and then future text of that color is transparent...
When I comment out my declaration of $black, text on 3 of the 4 possible background/original images turns to black. On the odd one, the text becomes white.
What am I doing wrong here?
I should add that no matter what RBG combo I specify for $black, I get the same results.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Creating PNG's using GD from an existing PNG...issues with colors
by BrowserUk (Patriarch) on Aug 27, 2009 at 01:52 UTC | |
by elsif (Initiate) on Aug 27, 2009 at 03:42 UTC | |
by GrandFather (Saint) on Aug 27, 2009 at 04:21 UTC | |
by MidLifeXis (Monsignor) on Aug 27, 2009 at 15:47 UTC |