canon_info
Display the resolved sprite canon and, when given a file, count how many pixels fall into each defined region versus remain unmatched to pinpoint gaps in region definitions.
Instructions
Show the resolved canon (palette size, regions with their rules and protection flags, scale table, thresholds) and optionally census a file against it — how many pixels each region matches, and how many match nothing (unmatched pixels mean your region definitions have gaps). Pass canonPath or censusFile — without either there is nowhere to search from (the server's working directory is the client's, not your project's).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| cellH | No | spritesheet cell height (PNG sheets only) | |
| cellW | No | spritesheet cell width (PNG sheets only) | |
| canonPath | No | path to sprite-canon.json (default: search upward from the target file) | |
| censusFile | No | count region membership of this file's first frame (also used as the search origin for the canon) | |
| listColors | No | include the full palette hex list |