You must log in to comment.

in reply to @mog's post:

ok, so,

there is the top bar of colors and the grid of pixels. by default, the pixels are a grid of equally sized divs, assigned different colors.

the top bar are a bunch of details with expand to a pos absolute all-covering div. when you click on a color, it opens it's div, overlays the color on top of the selector, and places A tags on top of every pixel in the grid.

the A tags point to https://p.mogery.me/{y}/{x}/{c}, where y and x are (encoded) coordinates, and c is the (encoded) selected color. when a request lands on my server, it checks for a cooldown, then it saves the color to a db, and THEN the server regenerates the post's html with all the colors and calls the cohost API to edit the post.

tldr: magic

Pinned Tags