pxart help plain

Plain sheets

Contact sheets with no text and a fixed layout, a true 1x beside each scaled copy, and a sidecar of every cell's position: for visual tests and blind review.

PLAIN SHEETS (pxart help plain)

  sheet FILE... --plain [--with-1x] [--cells CELLS.json] [--ticks N] [--scale N] [--cols N]
        [--rows cols|group|file] [--bg COLOR] [--align bottom|pivot] -o sheet.png
  --plain draws no text at all (no ids, sizes or color counts) on a fixed integer layout,
  for a visual test or a blind review: every cell is the same size, its slot the largest
  .px frame times --scale (or the largest PNG, if bigger), 8 px between cells and around
  the sheet; each image bottom-aligned and centered (rounding left) in its slot. .px
  frames are scaled by nearest neighbour, so a scaled copy downsamples to the exact 1x;
  PNG inputs are placed as they are, unscaled. --with-1x puts each frame's true 1x (never
  upscaled) in a slot of its own before its scaled copy, 8 px apart. --cells CELLS.json
  writes each image's rect (x1 and xN: x, y, w, h; a PNG's x1 is null) with its file,
  frame id, label and scale: the ids live there, never in the image. --ticks N draws a
  4 px tick every N source px along each scaled copy's top and left edges, in the gutter,
  never over the art. --with-1x, --cells and --ticks need --plain; --plain takes no --fit
  or --grid.

  The sidecar: {"pxart": "sheet --plain cells", "version": 1, "image", "size": {w, h}, "scale",
  "with_1x", "cell": {w, h}, "pad", "cells": [{"file", "frame", "label", "variant", "kind": "px"|"png",
  "x1": {x, y, w, h}|null, "xN": {x, y, w, h}, "scale"}]}, cells in input order.

  sheet hero.px:idle/0 hero.px:walk/down/0 overlay.png --plain --with-1x --scale 4 --ticks 8 \
      --cells pack.json -o pack.png
This page is built from pxart.py in the repository.Edit on GitHub