Pekka Väänänen

@pekkavaa.bsky.social

Avid reader, computer graphics fan and atmospheric jungle beats enjoyer. Demoscene: cce/Peisik. Blog at https://30fps.net/

Ever wondered what a test card is for? TV signals are encoded in the YUV or YCbCr color spaces. A vectorscope is just the CbCr or UV part of the signal in 2D. Running a SMTPE test card through the scope gives you a zigzag pattern where it visits the center of each primary box in a specific order.

The SMTPE test card, electronically generated.An oscilloscope image with lines and boxes printed on the screen. The green lines of the oscilloscope are tracing out a pair of interlocking zigzags that exactly hit the centers of the boxes. Science!

I've read that newspaper-like halftone patterns are laid out in a 45-degree angle because the human eye is less sensitive to that than to straight grid lines. But wouldn't a simpler explanation be that newspaper photos of streets and buildings have straight lines, so a rotated pattern works better?

The Mona Lisa mapped to the Commodore 64 palette by taking only pixel lightness into account. Two algorithms: N-Convex (left) always tries to dither the result while in Knoll's algorithm (right) dither strength can be tuned.

Bild

A computer history question: Why didn't VGA support a 256-color 640x400 mode even though a frame would fit in 256 KB memory? I can see a business reason (the IBM 8514/A high-end card introduced at the same time) but is there a known technical justification for not having such a mode?

The "popularity" color quantizer is one of the simplest: find the K most used unique colors in the image. That's the palette. I was surprised how well it works when K=256 and the image is reduced to 4-bits per channel before. Even transparencies look kinda OK.

Two images of Swedish red houses with transparent sky shown as a grey checkerboard pattern. The top one is the original, below it is the color reduced version that looks almost identical.

Here the 4-bit quantized 256-color result does look decent. The only 
visible issues are the white fringes on the treeline on the left half of the image, 
and small overall color distortion caused by the 4-bit colors. For example the 
red paint of the facades is reproduced with a subtle greyish noise not present 
in the original.