Unless memory is at a premium, use 8 bits per pixel. With 6 bits, the image could only have 26 = 64 colors; with 8 bits, it can have 28 = 256 colors, a considerable improvement.
Consider the following pattern:
It is not easy to work with. It is convenient to break bit patterns into 4-bit groups (called nibbles):
0010 1000 1010 1010
There are 16 ( = 24 ) possible patterns in a nibble. Each pattern has a name, as seen in the table.
You might be tempted to call those 4-bit patterns "binary numbers". Resist that temptation. The bit patterns in computer main memory are used for very many purposes. Representing integers is just one of them. The fundamental concept is "bit patterns". Don't confuse this concept with one of its many uses: "representing numbers".
The above bit pattern can be written using the pattern names:
0010 1000 1010 1100 = 28AC
Bits are grouped into nibbles starting at the right. Then each nibble is named. This method of giving names to patterns is called hexadecimal.
Name the following patterns: