ReaderTube

AI summary

Yellow marks are automatic key passages. They aren’t personal saved highlights. Select a timestamp to follow along with the video.

In the early 1980s, home computers had little memory, so engineers developed ways to add color without consuming it all, since a full-color screen would have exhausted the RAM of most machines. The video explains the main tools they used: color cells, which give each 8-by-8 block two colors; the Commodore 64's multi-color mode, which trades horizontal resolution for up to four colors per cell; and hardware sprites, which are independent objects that ignore the color grid and move freely across the screen. It closes by comparing how many sprites each system supported, such as eight on the Commodore 64 and 64 on the Nintendo, and it previews a second part on Apple II graphics and CPU-driven modes.

Memory limits of early home computers

In the early 1980s, a typical home computer had 16K of RAM, some had 32K, and high-end models might have 64K. The video chip had no memory of its own and shared RAM with the CPU. A typical screen resolution was 320 x 200 pixels, which comes to 64,000 pixels on screen.

How color depth consumes memory

A 1-bit, black-and-white screen needs about 8 kilobytes to store its image. That still leaves enough memory for game code. At 16 colors, the screen requires 32K, which was more than many computers had. At 256 colors, the screen uses up all the RAM even on high-end machines, leaving nothing for code. A modern 24-bit 'true color' display would have been impossible. Engineers therefore found ways to add color without using so much memory. They relied on three main methods: color cells, used by systems such as the Commodore and Nintendo machines; artifact coloring, used mainly on the Apple II and the Tandy Color Computer; and CPU-driven graphics, used on systems such as the Atari 2600 and the Sinclair ZX81.

Color cells and how they work

Color cells were arguably the most popular of these methods. The screen is divided into small blocks called cells, and each cell can have its own color. Starting from a 1-bit screen, where each pixel is either on or off, the screen is divided into areas 8 pixels wide and 8 pixels tall. Each area can define a foreground color and a background color. Text in one cell can be yellow, text in another can be blue, and a cell's background can be blue. This adds color to what would otherwise be a black-and-white display. Each cell needs only 1 byte of memory to store its two colors, so the whole screen uses about 9 kilobytes instead of the 8 kilobytes of a monochrome screen. This was a good tradeoff.

Limits of the two-color cell

The main problem is that each cell can hold only two colors. A white line running through a cell that already contains other colors is not possible. The system could display 16 colors on screen at once, but the colors could not always be placed exactly where the artist wanted them. This made artwork difficult to create.

Artwork built around cell boundaries

A piece of artwork made on the Commodore 64 looks very colorful, and a casual viewer may not notice the machine's color limits. Overlaying imaginary lines that mark the color cells shows that no cell ever contains more than two colors. The artist carefully aligned the work with the cell edges so that it appears seamless. This level of effort deserves respect. Nearly every Nintendo Entertainment System game faced the same problem. Its color cells worked somewhat differently from the Commodore 64's, but the underlying difficulty was essentially the same.

Multi-color mode on the Commodore 64

Engineers gave software designers another option. The C64 had a 'multi-color mode.' In this mode, pixels are twice as wide, which cuts the horizontal resolution in half. Small text looks poor in this mode, but the machine offers more color in return. Each color cell can now show up to four colors, and the mode still uses about 9 kilobytes of RAM. Even so, no single cell displays more than four colors. Most Commodore 64 games used this mode because color was often more important than high resolution.

Hardware sprites

The final tool was the hardware sprite generator. A sprite can be designed on graph paper, which is how the presenter, by their own account, first learned to make them in the early 1980s. The design must then be converted to binary data, where each pixel is either a 0 or a 1. A sprite is divided into sections of 8 pixels each. An empty section is written as 0. A section containing pixels is converted from binary to decimal, using a calculator for simplicity. One example section converts to 124. The completed numbers are then entered into the computer's memory, and the sprite is turned on.

Sprites as independent objects

Once a sprite is on, typing over it or erasing it from the keyboard is not possible, and changing the text color has no effect on it. A sprite is independent of the rest of the screen and ignores the color cells. Its color can be changed through a different register, and its position can be moved by changing another register. Even a clear-screen command does not remove it.

Sprite counts across systems

Sprites were heavily used in gaming, but each system supported a different number. The Commodore 64 had eight sprites. The Nintendo had 64, but its sprites were very small, so a game usually needed many more of them to achieve the same effect. Mario, for example, is made up of several sprites that are kept together so that he looks and behaves as a single character. This concludes part one. Part two will cover how Apple II graphics and some early CPU-driven graphics modes worked.

Turn your watchlist into a reading routine

Bring your YouTube videos together, read summaries with key passages marked, and explore the full transcript. Save your own highlights with Pro.

Start with 5 free batteries. Each covers up to 30 minutes of a new summary.

New summaries depend on video availability and demand; processing may take time or require retry.