Page 1 of 1

Unusual Colours

Posted: Sun Oct 24, 2010 4:57 pm
by laz0r
Challenge is at: http://www.hacker.org/challenge/chal.php?id=207
I'm writing a PNG reader at the moment, and I was wondering if I had the Background right on the picture clrs.png which makes up this challenge. The Background chunk consists of one byte, 0x00, which (because the colour type is 3, indicating referenced colour) references the Palette colour at index 0. This, as I read it, is the colour RGB=0,0,0 which is black. I know that the renderer doesn't actually have to use this background colour (it's an ancillary chunk), but it just looks like it should be some sort of white colour (such as the one at index 2 which is RGB 247,247,247).
Or is it that the text is represented by the background? I'm a bit confused - please help!

Posted: Sun Oct 24, 2010 6:59 pm
by Icho
Edit: Never mind then :)

Posted: Sun Oct 24, 2010 7:21 pm
by laz0r
I'm not exactly trying to solve the challenge at the moment - I'm trying to get my PNG reader working properly.

Re: Unusual Colours

Posted: Sun Oct 24, 2010 8:41 pm
by teebee
laz0r wrote:Or is it that the text is represented by the background?
Yes, it is.

Re: Unusual Colours

Posted: Mon Oct 25, 2010 9:31 am
by laz0r
teebee wrote:
laz0r wrote:Or is it that the text is represented by the background?
Yes, it is.
Well, that was simple :P Thank you!

Posted: Sat Dec 14, 2013 8:07 pm
by trofi
> Lapis luzuli
There is 'Lapis lazuli'. Is the typo intentional?