In the world of showing off, there is alongside ‘Does it play Doom?’ that other classic of ‘Does it play Bad Apple?’. Whereas either would be quaint in the context of the Vim editor, this didn’t deter [Nolen Royalty] from making Vim play the Bad Apple video. As this is a purely black and white video, this means that it’s possible to convert each frame into a collection of pixels, with regular expression based search and custom highlighting allowing each frame to be rendered in the Vim window.
The fun part about this hack is that it doesn’t require any hacking or patching of Vim, but leans on its insane levels of built-in search features by line and column, adjusting the default highlight features and using a square font to get proper pixels rather than rectangles. The font is (unsurprisingly) called Square and targets roguelike games with a specific aesthetic.
First 6,500 frames are fed through ffmpeg to get PNGs, which are converted these into pixel arrays using scripts on the GitHub project. Then the regex search combined with Vim macros allowed the video to be played at real-time speed, albeit at 120 x 90 resolution to give the PC a fighting chance. The highlighting provides the contrast with the unlit pixels, creating a rather nice result as can be seen in the embedded video.
Sometimes I idly wonder what it would be like to be a person who knows absolutely anything about Touhou project
Like 99% of the world’s population? Myself included?
99% of the population know about Touhou project and these characters that apparently come from some game I think? Am I in the 1%?
Miles was saying that 99% of the world knows nothing about whatever “Touhou project” is. (Count me in the 99%, too.) So if you do know about whatever you’re talking about (honestly, you’ve managed to confuse me so I honestly can’t tell), then yes you’re in the 1%.
The wikipedia page would be a natural start
I tried but my eyes rolled off the screen as if it were a Lovecraftian gaping hole in worldly perception, a thing that resists being seen or known
EMACS fires up its VI emulator and takes off!