4 ms·
The article isn't really about box drawing generally, but box drawing with those specific characters.
by bawolff 4y ago
The article isn't really about box drawing generally, but box drawing with those specific characters.
- vardump 4y agoWhen you had just 256 unique 8x8 pixel characters to draw all of the game graphics, you tried to use as few as possible. For drawing a thin line rectangle, you need at least 4 characters. Which are exactly the ones mentioned in the blog post.
- vidarh 4y agoYes, but the point being that having a two-colour per character restriction and box drawing with lines on one edge was common. E.g. here's "PETSCII" [1], the Commodore character set, and as you can see there's a number of characters that provides different thickness "borders" on the left/right/top/bottom. Here's a page with a number of "PETSCII" images using the same method to have borders in images with the other colour firmly on one side of the line [2] As for modern usage, here's a tiny image from my personal terminal text editor, which uses the same method with unicode to get a shaded transition between the line numbers and the main display area [3]. [1] https://www.petscii.de/images/PETSCII_MODE_02.png https://www.petscii.de/images/PETSCII_MODE_02.png [2] https://oldmachinery.blogspot.com/2020/09/petscii-petscii-petscii.html https://oldmachinery.blogspot.com/2020/09/petscii-petscii-pe... [3] https://imgur.com/a/LudA5nY https://imgur.com/a/LudA5nY