sprite_tools_pixelate
Clean pixel art: find the true pixel grid, downscale to it, snap to a palette, hard alpha. Price: $0.10 USDC via x402, charged only on success. Part of Sprite tools: 2D sprite jobs for games, deterministic and cheap: slice a sheet into frames (grid or automatic by transparency), pack frames into an atlas with TexturePacker and Unity metadata, and turn upscaled or AI-generated pixel art into real pixel art on its true grid with a limited palette..
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| image | No | Base64 PNG. | |
| scale | No | Size of one art pixel in image pixels; detected when omitted. | |
| colors | No | ||
| palette | No | Hex colors to snap to. | |
| imageUrl | No | ||
| alphaThreshold | No |