| ▲ | andai a day ago | |
I made my own binary visualizer when I was learning C. I had a for-loop which generated a texture by just setting the pixels based on the bytes in the file. I had two modes, monochrome (the bits) and grayscale (the bytes). Anyway funny thing happened, I had a buffer overflow and my program ended up visualizing its own memory. Actually I had the same error another time, I was trying to make a simple Terraria clone (like 2D Minecraft) and the terrain ended up rendering my mouse coordinates interpreted as booleans or something. C is fun! | ||