Now we’ll move onto creating a colour image using binary.
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.