My script is here: http://euphoria.arealisp.com/~utonium/RBS/sample.txt

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.


In reply to Creating PNG's using GD from an existing PNG...issues with colors by elsif

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.