Decoding a row of palette pixels

A small game icon uses a palette of four colours, with these codes:


Code

Colour

00

white

01

black

10

red

11

blue


One row of the icon is 8 pixels wide and is stored, first pixel first, as the 16 bits below. The bits are printed in groups of four only to make them easier to read.


0001 0110 1111 0100


Fill in the colour of each pixel in the row, using the colour names from the palette.

PixelColour
1
2
3
4
5
6
7
8

Create a free account to get started

Unlock full course notes by signing up

  • Video lessons taught by top educators
  • Practice questions with guided solutions
  • Written review notes for reference
  • Expert answers anytime from course tutors

More Digital Representation of Multimedia Questions: