A new web application allows you to play DOOM via the Console in Google Chrome browser.
DOOM runs via WebAssembly in a hidden “canvas” element. I use HTMLCanvasElement.toDataURL function to turn this into a base64 encoded string. A Console.log() is called with two arguments, “%c X”, which is a random string that is going to be stylized by the next parameter, which is composed of css properties. I then attribute the base 64 into a background-url property, thus rendering it.
Via Boing Boing.