Binary - colour images part 1

Now we’ll move onto creating a colour image using binary.

Back to part 1

I have updated the app so you can select from one of 16 colours for each pixel. Why 16 colours? Sixteen colours fit nicely into 4 bits. This was common in older and less powerful computers, that are more limited in the number of bits they could use to represent images. The 16 colours I have chosen are the same as used by the Commodore 64, the first computer I learnt to programme on.

Notice how we need a lot more bits to represent this 5 by 5 image than our previous 5 by 5 black and white image.

Binary:

Next we won’t be limited to 16 colours. We’ll upgrade our app so we can use over 16 million colours!

Alex Orpwood Written by:

Software developing and architecting for 20 years. Satellite monitoring by day, writing my own app by night. More about me