back
1 comments
From the Reddit thread[0] -

BMP files store scanlines from bottom to top, which is why it starts at the bottom. Colors are just 3 bytes (depending on pixel format). Set each byte corresponding to ASCII characters (for example 32, 32, 32 are three spaces).

[0]: https://old.reddit.com/r/programming/comments/ktiv20/program...