Unusual Colours

Post Reply
User avatar
laz0r
Posts: 290
Joined: Thu Feb 04, 2010 4:18 pm
Location: Within the depths of Unix

Unusual Colours

Post 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!
There is no spoon.
Icho
Posts: 6
Joined: Fri Oct 09, 2009 4:25 pm

Post by Icho »

Edit: Never mind then :)
Last edited by Icho on Mon Oct 25, 2010 6:16 am, edited 1 time in total.
User avatar
laz0r
Posts: 290
Joined: Thu Feb 04, 2010 4:18 pm
Location: Within the depths of Unix

Post by laz0r »

I'm not exactly trying to solve the challenge at the moment - I'm trying to get my PNG reader working properly.
There is no spoon.
User avatar
teebee
Posts: 89
Joined: Mon Nov 10, 2008 3:21 pm
Location: Germany

Re: Unusual Colours

Post by teebee »

laz0r wrote:Or is it that the text is represented by the background?
Yes, it is.
User avatar
laz0r
Posts: 290
Joined: Thu Feb 04, 2010 4:18 pm
Location: Within the depths of Unix

Re: Unusual Colours

Post 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!
There is no spoon.
trofi
Posts: 23
Joined: Mon Oct 14, 2013 7:20 pm

Post by trofi »

> Lapis luzuli
There is 'Lapis lazuli'. Is the typo intentional?
Post Reply