Okay, know I tried it and it works perfectly!

Thanks!




On Mon, 22 Jul 2002 15:37:03 -0400
Bob Showalter <[EMAIL PROTECTED]> wrote:

> > -----Original Message-----
> > From: Konrad Foerstner [mailto:[EMAIL PROTECTED]]
> > Sent: Monday, July 22, 2002 2:19 PM
> > To: [EMAIL PROTECTED]
> > Subject: Position 251 ???
> > 
> > 
> > Hi,
> > 
> > I have a strange error in my script. It should
> > paint a column of lines next to each other in
> > colors which are determinated by a given sequence 
> > of letters. It works...but only to the position
> > of 251. After this point all lines have the color
> > of the line at position 251...even when I use
> > a different letter sequence.
> > 
> > Is this a sign? The 251?  ;) Nope, any hints?
> 
> You can only allocate 256 colors. After that, colorAllocate will
> return -1, per the docs. Since you are only using 4 colors, you 
> should allocate these colors once, and store their indexes in a 
> hash, as per the solution Jenda posted.
> 
> cf. http://www.boutell.com/gd/manual1.8.4.html#gdMaxColors
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to