It was only made for fun, so the code wasn't written with the intention of anyone seeing this.
- Went to pixelplanet.fun, opened dev console (ctrl + shift + c) -> Network tab
- Placed a pixel and the request that was sent to the server was recorded.
- Right clicked on it -> Copy -> Copy as curl
- Converted curl to python here
- Pasted the python code to my python IDE.
- Got RGB values for each available pixel colour on pixelplanet.fun and put them in a list
- Added image reading function to my python code.
- Found a dithering library for this project to convert image to a different colorspace.
- Implemented dithering in this code
- Implemented a function that loops through all the pixels in the new dithered image and sends a modified request to place each pixel, then after getting the response, waiting a certain amount of time till the timer hits 0 and it can place a new pixel.