pxlsFiddle APIs (if one can call them that

This page documents (sort of) the APIs (if one can call them that) available on pxlsFiddle.

Embeddable color

URL: https://pxlsFiddle.com/color

Usage:
/color?COLOR

COLOR can be one of:


If no matching color is found, output will be null.
If a match is found, the page will incude a preview color image with hex and RGB color codes, as well as a closest-matching color name.
Can be used on OpenGraph-style platforms, including Discord.

URL: https://pxlsFiddle.com/colorsmall
Same, but smaller output images, does not include color name.

pxls.space cooldown

URL: https://pxlsFiddle.com/cd

Returns JSON with:

pxls.space board image manipulation

URL: https://pxlsFiddle.com/board

Usage:
/board
Returns most recent board snapshot (5 minute interval) as image/png.
For pxls.space: functionally equivalent to requesting https://pxlsFiddle.com/boarddata.png

Usage:
/board?cx=cropXcoord&cy=cropYcoord
Returns 128x128 crop of the board centered on the provided X and Y coordinates as image/png.

Usage:
/board?cx=cropXcoord&cy=cropYcoord&cr=cropRadius
Returns crop of the board centered on the provided X and Y coordinates, expanded out to the top, right, bottom, and left by the given cropRadius, as image/png.

Usage:
/board?cx=cropXcoord&cy=cropYcoord&cw=cropWidth&ch=cropHeight
Returns crop of the board starting at the given X, Y coordinates at the top left, and expanded to the right and bottom by the given cropWidth and cropHeight, as image/png

Usage:
/board?template=imageurl&tw=width&ox=offsetX&oy=offsetY
Returns html page with template image overlaid on the most recent board snapshot (darkened to highlight the template image), and cropped to size, and automatic countdown to redirect to pxls.space link for the given template.
Can be used on OpenGraph-style platforms, including Discord.
Usage:
/board?diff
Returns only pixels changed from the initial canvas state as image/png.

Usage:
/board?untouched
Returns false color image with masked off pixels (red), untouched pixels (green), and placed pixels (transparent) as image/png.
For pxls.space: functionally equivalent to requesting https://pxlsFiddle.com/virginmap.png

pxls.space raw board files processing

URL: https://pxlsFiddle.com/board2png
Usage:
/board2png?data=URL-to-boarddata&w=width&h=height
Returns image/png of the given boarddata file, based on the then-understood pxls.space palette and the given width/height (optional, will use pxls.space board dimensions if omitted).

Usage:
/board2png?data=URL-to-virginmap&w=width&h=height&virgin
Returns image/png of the given virginmap file, based on the given width/height (optional, will use pxls.space board dimensions if omitted). Yellow=virgins (or masked off), transparent = non-virgins.

Usage:
/board2png?data=URL-to-placemap&w=width&h=height&place
Returns image/png of the given placemap file, based on the given width/height (optional, will use pxls.space board dimensions if omitted). transparent=masked off (can't be placed on), white = non-masked.
For pxls.space: functionally equivalent to requesting https://pxlsFiddle.com/placemap.png
Unless current board state is required, see the /board API or functionally equivalent resources instead, which work off a 5-minute interval snapshot, and API has a combined virgin/placemap output.

URL: https://pxlsfiddle.com/heat2png
Usage:
/heat2png?data=URL-to-heatmap&w=width&h=height
Returns image/png of the given heatmap file, based on the given width/height (optional, will use pxls.space board dimensions if omitted). Brighter colors are more recent.

Usage:
/heat2png?data=URL-to-heatmap&w=width&h=height&flir
Returns image/png of the given heatmap file, based on the given width/height (optional, will use pxls.space board dimensions if omitted). Uses a FLIR-style color gradient. 'Hotter' colors are more recent.

CORS proxy

URL: https://pxlsFiddle.com/cors
Usage:
/cors/?t=targetURL

Returns the given URL resource as proxied through pxlsFiddle. Used on pxlsFiddle to circumvent dumb CORS limitations.

image mapping ('Avogadro')

See: /avogadro/index.html#api

template projects (/progress)

URL: https://pxlsfiddle.com/progress/json
Usage:
/json
Returns all projects' data as JSON.

Usage:
/json?project=projectShortName
Returns a specific project's data as JSON.

Returned JSON is a singular object with each project's short name as its key, rather than an array of projects.
Projects may contain the following:
The project shortname / src can be used to derive: