WOHOO!! I finished my goal for today, I programmed an image encoder that converts drawn images into rectangle coordinates
It also compresses the image based on a threshold value you set, so if some nearby pixel colors are similar (below the threshold in difference) then I can combine them into a rectangle.
Here's 25 pixels condensed into 10 rectangles [image deleted][image deleted] Now I can paint in photoshop, start this program and it will spit out code for me to use in my webgame!