API & MCP

Everything a person can do on Pixel Grid Transform, a program or AI agent can do with the same inputs and get the identical result.

HTTP API

Pixel Grid Transform

Enter a compact pixel grid and HEX palette. Transform it with exact integer coordinates, optional wrapping and transparent pixels, then download an editable Flipline Pixel Studio project.

Inputs of Pixel Grid Transform
FieldTypeDefaultDescription
rowstextarea"..1..\n.121.\n12321\n.121.\n..1.."Pixel rows (. = transparent; 1–9 then A–W = palette entries)
palettetext"#213b45,#65a87b,#e6af61"HEX palette (comma separated)
operationselect (flip-x, flip-y, rotate, shift)"rotate"Operation
dxinteger1Shift X (pixels)
dyinteger0Shift Y (pixels)
wrapbooleanfalseWrap shifted pixels

Example request

Rotate a tiny sprite

curl -X POST https://fliplinepixeltransform.usefulweb.site/api/v1/calculate -H 'content-type: application/json' -d '{"rows":"1..\n.2.","palette":"#213b45,#65a87b","operation":"rotate"}'

Every result contains

inputs (normalised, defaults applied), summary, result (validated against the published schema), units, assumptions, sources, warnings, computedAt and links.

MCP (Model Context Protocol)

{
  "mcpServers": {
    "flipline-pixel-transform": { "type": "http", "url": "https://fliplinepixeltransform.usefulweb.site/mcp" }
  }
}