Join Nostr
2025-07-01 19:36:10 UTC

Nea on Nostr: Here's how I edit screenshots of the 80*25-character VGA text mode to simulate the ...

Here's how I edit screenshots of the 80*25-character VGA text mode to simulate the CRT look:
1) Take a screenshot of DOSBox. (It has square pixels and no extra pixel column between the 8*16-pixel characters.)
2) Add 1 black column to the right side of each character. (VGA does this in some text modes.)
3) Double the width and the height. Use nearest neighbour interpolation.
4) Make every 2nd pixel row of the characters lighter and the rest darker. This simulates the gaps between the horizontal sweeps of the electron beam.
5) Aspect ratio correction: Resize the width to 20/27 of the original. Keep the original height. Use linear interpolation. The ratio comes from (4/3)/((80*9)/(25*16)) where 4/3 is the aspect ratio of old screens and (80*9)/(25*16) is the aspect ratio of the image with square pixels.
#tutorial #graphics