Computerästhetik für Medien und Design
A German book from 1995
https://twitter.com/masoodkamandy/status/1483187663704248323
The author used the following 8 base colors. They are manually ordered to look like a rainbow.
The author continues to think of the pixels on the screen as a grid of larger 2 × 2 pixel cells. Each of the 4 pixels in one of these cells can have one of the 8 base colors. That's effectively some kind of dithering. In theory, there are 8^4 = 4096 possible combinations. The author excludes duplicates in a quite clever way, which leaves the following 330 colors.
This is not an image. You can look at the code.
Why 330? The idea is that the total number of possible combinations contains lots and lots of duplicates. For example, the combinations 1000, 0100, 0010, and 0001 are all the same: 3 parts of color number zero, and one part of color number 1. An iterative formula to calculate the number of unique combinations is a / n * (n + 7) where n is the number of pixels in a single cell and a is the number of colors from the previous iteration.
You can think of these numbers as