Add note that I had to recompile cool-retro-term
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Anthony Wang 2022-07-06 10:00:01 -05:00
parent fb2fde0743
commit bd8c484553
Signed by: exogit
GPG key ID: 1DDC6BC38786C595

View file

@ -56,7 +56,7 @@ This whole project has basically been a giant exercise in problem solving. As a
The final fun problem I ran into was making the background. I'd always had an image in my mind of what I wanted the background to look like (despite my slight aphantasia), and I'd even asked some other LadueCS members a while back ago to help gather a [list](https://codeberg.org/LadueCS/pages/src/branch/main/img/mascot/background.txt) of funny Linux and Vim commands and programming language tricks to put in the background. Now when it actually came time to make the background, [cool-retro-term](https://github.com/Swordfish90/cool-retro-term) had the perfect eye-candy to make it happen. Unfortunately, since my canvas was 4961x7016 (A4 at 600dpi in case you were wondering), I also wanted the background to be that resolution since I care about details like that. That meant resizing a window of cool-retro-term to that size and taking a screenshot. Now I don't know about you, but I don't have any displays of that size.
My solution (it sounds incredibly dumb, but it works) was to first set my display scaling to 100% so I could fit a half-size 2481x3508 window on my 4K display (using Kwin window rules to hide the top border and resize the window to exactly the right size) and set the font size so the text (I used `vi` instead of `cat` for printing the text so we can have a nice `vi` easter egg at the bottom of the background) would snugly fit the window, and then set the display scaling to 200%. That caused the window to now be about four times as big as my display, but I had already fine-tuned the font size so the text would fit nicely, and all that was left was to take a screenshot of the giant window. The [screenshot](https://codeberg.org/LadueCS/pages/src/branch/main/img/mascot/background.png) came out to be around 20MB, which makes sense since it was basically an 8K image. Kinda. Square root of two instead of 16 over 9, same thing.
My solution (it sounds incredibly dumb, but it works) was to first set my display scaling to 100% so I could fit a half-size 2481x3508 window on my 4K display (using Kwin window rules to hide the top border and resize the window to exactly the right size). I then recompiled cool-retro-term to be able to set the font size to ridiculous values and increased the font size so the text (I used `vi` instead of `cat` for printing the text so we can have a nice `vi` easter egg at the bottom of the background) would snugly fit the window, and then set the display scaling to 200%. That caused the window to now be about four times as big as my display, but I had already fine-tuned the font size so the text would fit nicely, and all that was left was to take a screenshot of the giant window. The [screenshot](https://codeberg.org/LadueCS/pages/src/branch/main/img/mascot/background.png) came out to be around 20MB, which makes sense since it was basically an 8K image. Kinda. Square root of two instead of 16 over 9, same thing.
Now you're probably waiting to actually see the finished drawing since you probably want to judge the artwork of someone who can't draw.