Hi!!! Wanted to write about a fun program I made. What you see below is Ch1 of The Bible.
Furthermore, below is the phrase "HELLO MY NAME IS JODIE AND I LOVE FORTNITE"

I was inspired by Emnerson (who made a thumbnail averaging program you should definitely check out!!) to learn PIL in Python, since I have wanted to for years and never got around to it. This is the first program that's come from that.
It works by taking every letter in a string, and turning its ASCII code into a Hexadecimal pair (I.e. C3, 37, EF), and then turning it into a Denary value between 0 -> 128. As RGB values are also represented between 0-255, I can plug three "Hex Pairs" and get an RGB value out of it - This is also how Hex colour codes work! It's just 3 values smushed together!
For example; The text "HEL" would be split into "H", "E", "L", turned into Hex to get "48", "45", "4C" using ASCII codes, and turned into denary to get "72", "69", "76". The RGB values for this pixel then become (72, 69, 76), and the corresponding Hex colour code is #48454C!!! I do this for all "triplets" of letters in the string.
Unfortunately, this does have some bugs; If the length of your string isn't a multiple of 3, the last one or two characters get lost, however I'm working on fixing this!! I also paint white any blank space in the square, and I'm working on a resizing algorithm soon to minimize the white space.
I considered multiplying the denary values by 2, which would make all of these brighter, but ultimately it would lose the fun fact of being able to translate directly. I'll have to consider it though!! Would make the squares more lively.
I also love "Pattern spotting" in these; You can recognise some words like "the" if they appear a bunch in the right places. It's really fun!!! I like playing around with it.
Thought I should document this since I found it really fun to play around with. Soon I'll release it; Hopefully.
Comments
Displaying 2 of 2 comments ( View all | Add Comment )
Artistic_Hyperbole
yesss. this is the sort tnhig i wanna se in the toop blogs page
Thank you!!! I deeply appreciate it :]
by jodie; ; Report
overthinker
this is extremely nerdy, and i mean that in the best way possible. sick stuff, keep going! :)
Tysm, I will!!! I hope to get the code up on Github once everything is ready. Should be soon though, once I solve the data loss thing!!
by jodie; ; Report