Changelog
All notable changes to PAGAN are documented in this file.
The format is based on Keep a Changelog, and this project adheres to
Semantic Versioning. Game projects should pin a release tag
(e.g. pip install "git+ssh://[email protected]/lukasgolino/[email protected]").
A new version (and tag) is cut for any change to:
- the notation (palette, sprite, tileset or model files),
pagan.tomlsettings,manifest.jsonor exporter output (PNG layout, Godot resources),- rendering results (the pixels a given source produces),
- the CLI’s
--jsonoutput and the MCP tools (names, arguments, result keys).
While on 0.x, a minor bump (0.1 -> 0.2) may change any of these; entries marked Breaking say what to
check before upgrading. Patch bumps (0.1.0 -> 0.1.1) never change existing behaviour. Every release changes
the manifest’s generator ("pagan X.Y.Z"), so expect every manifest to change once per upgrade.
Unreleased
0.22.1 - 2026-11-09
Changed
- Licensed under the Apache License 2.0 instead of MIT (#88). Releases up to 0.22.0 stay available under MIT.
0.22.0 - 2026-11-09
PAGAN is on PyPI as pagan-gen and in the MCP Registry as io.github.lukasgolino/pagan (#85). Output is
unchanged apart from the generator string in manifest.json.
Changed
- The distribution is
pagan-gen(paganon PyPI is another project):pip install pagan-gen; the command and the import staypagan. Git pins must use the new name from this version on (pagan-gen @ [email protected]). - The MCP server is always installed (
mcpis a dependency; themcpextra is kept, empty), souvx pagan-gen mcpruns it without an install. - Upgrading from a git-pinned
pagan:pip uninstall paganfirst, then installpagan-gen. Both own the samepagan/files, so uninstallingpaganafter installingpagan-gendeletes them. - CI: lint, types and tests on one Python run on every push. The full Python matrix and the Godot checks run on the PR once it leaves draft, and again only if a commit lands after that, as the last gate before merge.
Added
- Tags publish a GitHub release from the changelog, the package to PyPI (Trusted Publishing) and
server.jsonto the MCP Registry.
0.21.0 - 2026-11-04
Changed
- The skill is split for agents that pay per token (#59).
SKILL.mdis a 6 KB core (was 26 KB) that is loaded whenever the skill triggers; the rest of the old SKILL.md and all ofreference.md(52 KB) moved, unchanged, into 18 topic files (skill/topics/*.md).pagan skill installwrites them and removes an installedreference.md. The MCP resourcepagan://referencebecamepagan://docs/{topic}. --jsonprints compact JSON (one line, no indentation): about 30-60% fewer characters. Pipe throughpython -m json.toolto read it by eye.pagan statuslists assets grouped by what they need (one line per group) instead of two lines per asset;-v/--verbose(MCP:verbose) gives the old per-asset listing with descriptions.--jsonleaves out descriptions unless--verbose. The demo: 1.4k -> 0.3k characters (text), 4.3k -> 1.7k (JSON).
Added
pagan docs [topic...] [--search words](MCP tooldocs): lists the topics with their size, prints one, or prints the few paragraphs that match. Budget tests keepSKILL.md, its description and each topic under a size.ruff checkin CI (#78).
0.20.0 - 2026-11-04
Changed
- The outline width cap (8 per ring) is in output pixels: with
supersample: Na ring may be up to 8N source pixels wide, so supersampled art can get outlines up to 8 output pixels thick (#62). camera.elevation(project[camera]or a model’scamera:override) accepts 0-90 degrees instead of 10-90, so the same model can be rendered level for side-on shots (0 = a true side elevation, no top faces) (#61).
0.19.3 - 2026-11-02
Fixed
- Parsing models and outlined sprites is several times faster when renders are cached (warm
pagan linton 40 16-heading models: 14.4 s -> 3.7 s): outlines, the frame-edge check and the used-keys scan no longer loop over every pixel in Python. Output is unchanged (#72).
Changed
pagan preview --engine(and the MCPpreviewtool’s engine view) renders Godot on a private offscreen display (Xvfb with Mesa’s CPU renderers, threads capped, one run at a time), never in a window on the desktop; without Xvfb it fails with a message saying what to install (#68).
0.19.2 - 2026-11-02
Fixed
pagan buildandpagan lintno longer hold every parsed asset (frames, voxel models of any size) until the end: assets stream through, each parsed, linted, written and let go before the next, so memory stays about that of the biggest asset however many the project has (#67). Big sprites parsed or rendered in parallel go through the sprite cache instead of piling up in the main process. Output is unchanged.pagan fitno longer suggests or writes asizeover the 1024 px model frame limit (which the nextbuildthen rejected): it fails with E001 and writes nothing (#67).- The default worker count (no
PAGAN_JOBS) is also capped at one per GiB of available memory, so a few commands at once (e.g. twopagan fits) don’t run a small machine out of memory (#67).
Changed
- A
pagan buildthat fails may already have written the outputs of assets before the first error (in file order: models/, sprites/, tiles/); assets after it are only linted, and the manifest is still only written, and stale files only removed, by a build without errors (#67).
0.19.1 - 2026-11-02
Fixed
pagan buildno longer holds every voxel model in memory for the whole build: models of 250k voxels or more are dropped after parsing and rebuilt from their source only when an exporter needs them (mesh, uncached normal maps), then dropped again, so peak memory is about that of the largest model, not the sum. Output is unchanged (#64).- Normal maps (
export“normals”) are cached next to the model renders (.pagan-cache/models/<name>-<key>.normals.npz) and come from the same render as the frames, instead of being rendered again on every build (#64). - Render workers (
PAGAN_JOBS) exit when the build process dies (e.g. OOM-killed) instead of living on as orphans that keep their memory, and are stopped after each big model, so their memory doesn’t grow model after model (#64).
0.19.0 - 2026-10-28
Added
frames_png:on sprites: frames read from the cells of an indexed (palette-mode) PNG next to the file, with an explicitkeys:map from PNG palette index to palette key (or".") and the cells’ frame names in reading order. For big generated art (title logos, backdrops): an 8 MB grid becomes a PNG of a few kB. PNG frames are linted and built exactly like grid frames, andframes:may add more (e.g. derived from them). Grid sources are unchanged (#7).api.frames_png(path, frames, size, palette=None, columns=8)writes such a PNG and returns theframes_png:value;api.sprite_yaml(..., frames={}, frames_png=...)leaves outframes:(API_VERSION 3) (#7).- Per-sprite cache for big sprites and tilesets (a megapixel or more of source pixels): the parsed asset, its lint
findings and its built sheets are kept in
.pagan-cache/sprites/(orPAGAN_CACHE_DIR), keyed by the source, its PNG, every palette file, the project config and a hash of PAGAN’s own code (plus an explicit cache version), so a hit is always what a fresh run gives. Small sprites aren’t cached (#7). - Two or more uncached big sprites/tilesets are parsed, linted and rendered in the
PAGAN_JOBSprocess pool, as models already were. Output is byte-identical (#7). docs/: install and tutorial pages, and reference pages generated from the code’s registries (every notation field,pagan.tomlsetting and lint rule).python -m pagan.docsregenerates them; a test and a CI step fail when they drift from the code. Error rules now have a registry,pagan.findings.ERROR_RULES(#13).
Changed
- Faster lint and build of big 2D frames (W007, W001, W004 and sheet rendering use numpy); same findings, same pixels. A 2 x 8-frame 1024x1024 project: cold build 26 s -> 6 s, unchanged rebuild 0.9 s (#7).
0.18.0 - 2026-10-28
Added
skip_translucent: trueon an outline ring (outline: { width: 1, skip_translucent: true }): the ring goes around opaque pixels only, so translucent glows and halos ("#rrggbbaa"colours) keep their soft edge and aren’t painted over. When every ring skips them, translucent pixels may touch the canvas edge (no E007) (#37).pagan fit <model> --write: sets the file’ssizeandpivotto the fit (in-place text edit, comments kept); the--jsonresult says whether itwrittenanything (#35).pagan preview --variants all: everyvariant_axescombination, as before (#32).- Font sprites:
font.advances: { "i": 4 }(per-character advance overadvance/auto),font.offsets: { "j": -1, "g": [0, 1] }(per-character draw offset: manifest glyphoffset,.fntxoffset/yoffset,Canvas.text) andfont.skip_blank: true(blank cells of non-whitespace characters are left out of the glyph table and the.fnt, so an engine falls back to another font). Fonts without them are unchanged (#34). - Tilesets:
tile_shape(square, isometric, half_offset_square, hexagon),tile_layout(stacked, stacked_offset, stairs_right, stairs_down, diamond_right, diamond_down) andtile_offset_axis(horizontal, vertical), Godot’s TileSet settings: the generated.tresis ready for an isometricTileMapLayer, and the manifest getstile_shape: { shape, layout, offset_axis }. Square tilesets are unchanged (#30). - Isometric tilesets are previewed where Godot places the tiles (positions measured on Godot 4.7.2): the 3x3 tiling
and
pagan preview --sceneshow the seams between diamonds.api.compose(..., square=True)keeps a plain grid;export_texturesstill uses one (#30). loop_from: Non sprite animations: an intro (frames before N, played once), then a loop. Exported as two animations,<name>(the intro, loop false) and<name>_loop(frames N.., looping), in the Godot SpriteFrames and the manifest, whose<name>entry recordsloop_fromandnext: "<name>_loop"for game code to chain onanimation_finished. Preview GIFs play the intro once, then the loop; W007 checks the seam last -> frame N (#8).- Per-frame
durationson tile animations (as on sprite animations), in the manifest and the Godot TileSet’sanimation_frame_N/duration(#8). - Timeline previews:
scenes/<name>.timeline.yamlcomposes sprites in time (size,fps,duration, optionalbackground; layers withsprite,anim,at,start,duration,alpha,fade_in/fade_out,from/to,then,variant).pagan preview scenes/<name>.timeline.yaml [--at 0.5,2.0]writesframes/f0000.png...,timeline.gifand anat.pngcontact sheet underpreviews/<name>.timeline/.pagan lintchecks timelines (E016);pagan buildignores them (preview only, no manifest change) (#16). - Exact pixel dimetric camera for 2:1 isometric tile games:
[camera] projection = "dimetric"withtile(pixels per grid cell, default[64, 32]),cell(voxels per cell side, default 16) andz_step(pixels per voxel of height, default tile height / cell). Every voxel steps whole pixels, a one-cell floor renders to the hand-drawn tile diamond and tiles at the grid pitch with no gaps or overlap, and 1-voxel pose offsets move whole pixels (no re-rasterised bobs, W007 stays quiet). Only the 4 diagonal headings render in it (heading: 45,directions: 4); others are E013. The default orthographic camera is unchanged (#29, #36). trim: trueon sprites (or[build] trim = truefor every sprite without its owntrim:): frames are cropped to their content and packed into the sheet in source order (sheet_columnsper row, 1 px gap, no rotation). The manifest’sframeskeep the full logicalsizeand gaintrim_rect(in the sheet) andoffset(in the frame); Godot AtlasTextures get amargin, so frames keep their full size in SpriteFrames. A fully transparent frame becomes a 1x1 transparent crop at offset [0, 0]. Fonts and nine_slice sprites can’t be trimmed (E001). Sprites without trim build exactly as before. The demo slime is trimmed (#1).pagan.api.pixel_font("3x5" | "5x7"): built-in monospaced pixel fonts (printable ASCII; 3x5 letters lowercase as uppercase) for generator lettering without a project or palette:canvas.text(api.pixel_font("3x5"), "EXIT", x, y, key="k")(keyis required for them) (#46).- Preview contact sheets over 4096 px on a side are split into pages:
sheet.pngbecomes an overview (headings or frames outside animations, variants, as-built/tiling rows, an index of the pages) and each animation getssheet.<animation>.png(models: one per pose, every heading on it), wrapped to 4096 px wide and continued insheet.<animation>.2.png,.3, … when taller (the overview insheet.2.png). Sheets within 4096 px are unchanged.pagan preview --jsonlists the pages insheet_pages; the MCPpreviewtool takespage(an animation) to return a page’s image. Preview output only: build output doesn’t change (#32). ringmodel part: a flat open annulus (no caps),ring: { center: [x, y, z], outer: R, inner: r, height: h, axis: z, material: m }fills the cells whose centres lieinnertooutervoxels from the axis,heightlayers along it from the center’s layer (gauges, handwheels, bolt circles, fan grilles, rotor ducts).centreis accepted forcenter;top,rim,id,mirror,carveandhiddenwork as oncylinder;pagan.api.shape_cells("ring", ...)gives its voxels (#35).- MCP
fittool:write: truesets the model file’ssizeandpivotlikepagan fit --write; the tool is now annotated as writing (not read-only) (#35).
Changed
- W003 for 3D models no longer counts flat one-key materials (
{ keys: ["a"] }LEDs, screens) as ramps, unless a shaded material uses the same key (#35). - Previews of assets with
variant_axesshow the plain variants plus each axis option on its own (<axis>.<option>, as in the manifest’svariant_axes), not every combination: frames/, native/, sheet.png, variants.png, scene_variants.png and the gallery stay the size of the options, not their product (#32). - With
variant_sheets = false,variant_axesmay make more than 256 combinations (no E006): nothing is built per combination, so over 256 none are made and the manifest lists the axes only (the game composes them). Under 256 nothing changes. Withvariant_sheets = truethe limit stays, and E006 says how to lift it (#31).
Fixed
--quietafter a subcommand (pagan preview <asset> --quiet) no longer shares its attribute with the top-level--quiet, so it turns progress lines off whatever argparse does with subcommand defaults (#38).- The skill reference showed lettering with a font sprite as
text(...); it is theCanvas.text(...)method (canvas.text(font_sprite, "THWACK!", x, y)). A test checks everypagan.apicall the reference shows (#33).
0.17.0 - 2026-10-21
Added
api.text_mask(text, font, cap_height=... | size=..., variation, anchor, rotate, scale, supersample): lettering from a TTF/OTF as an anti-aliased coverage mask (TextMask:coverage,mask(),origin,advance,bbox), sized by cap height, rotated/scaled about its anchor, variable-font axes by tag (#15).
0.16.0 - 2026-10-21
Added
sheet_columns: Non sprites: frames per sheet row (default up to 8, as before) (#9, #1).- W014: the built sheet is over 16384 px on a side, which many engines (Godot included) can’t load (#9, #1).
Changed
- Sprite and tileset frames can be up to 4096x4096 (was 1024), e.g. a 1x 1920-wide splash or a parallax backdrop. 3D model frames stay at 1024 (#9).
0.15.0 - 2026-10-21
Added
- Per-frame
durationson sprite animations (durations: [1, 1, 3]: how many 1/fps steps each frame shows), in the manifest, the Godot SpriteFrames (frameduration) and preview GIFs; mirrored animations copy them. Animations withoutdurationsare unchanged (#8).
0.14.1 - 2026-10-21
Changed
- W001 (orphan pixels) is vectorised:
pagan lintandpagan buildof big generated sprites are about 3x faster (8 frames of 1024x1024: lint 5.3 s -> 1.6 s). Same findings (#7).
0.14.0 - 2026-10-21
Added
pagan.apifor big generated art (#6):Canvas.from_array/to_array/mask(numpy),distance_field(mask)(exact signed Euclidean distance),bevel(mask, width, light)(0..1 brightness),dither(keys, t, x, y)(ordered Bayer dithering between ramp steps, vectorised) andCanvas.text(font_sprite, ...).
Fixed
api.sprite_yaml/tileset_yamlcrashed on numpy numbers insize,pivotand other fields (#6).
0.13.0 - 2026-10-21
Added
points:on sprites: named attachment points (sockets), one[x, y]for every frame or per frame, in the manifest aspoints: { name: { frame: [x, y] } }(output pixels), so engines can attach effects, weapons and hit boxes to animated sprites (#5).
0.12.0 - 2026-10-21
Added
- Derived frames can scale and rotate:
{ from: idle, scale: [1.2, 0.8], rotate: 6, about: pivot }(nearest neighbour;aboutispivot(default),centeror[x, y]). Order: flip, scale/rotate, shift; E010 if opaque pixels would leave the canvas (#4).
0.11.0 - 2026-10-21
Added
- Wide and stacked outlines on sprites:
outline: { width: 3, color: "0" }(a round ring up to 8 px) and a list of rings, innermost first (ink + light rim).outline: autois unchanged (#3). shadow: { offset: [dx, dy], color }on sprites: a drop shadow of the outlined shape under every frame (#3).
Changed
- E007 accounts for the total outline width and for shadows that would leave the canvas (#3).
0.10.0 - 2026-10-21
Added
- Translucent palette colours:
"#rrggbbaa"(00 = clear, ff = opaque) for drop shadows, glows, light rays and smoke; sprite and tileset pixels get that alpha in every PNG, and variantswaptables carry it (#2). [lint] require_opaque = true(E015) forbids translucent colours in a project’s sprites and tilesets (#2).
Changed
- The default
outline_coloris the darkest opaque colour;pagan importsnaps to opaque colours only; palette swatches show translucent colours over a checker;pagan palette adjustkeeps each colour’s alpha. Palettes without translucent colours behave exactly as before (#2). "#rrggbbff"is read as"#rrggbb". 3D model materials must be opaque (E013) (#2).
0.9.1 - 2026-10-21
Added
- The skill asks agents to report what got in their way (crashes, misleading messages, workarounds, missing
features) as GitHub issues: a minimal-repro draft, a duplicate check, and filing only once approved.
.github/ISSUE_TEMPLATE/agent-report.mdand theagent-reportlabel. Runpagan skill installto update a project’s copy of the skill.
0.9.0 - 2026-10-20
From LOOSE!’s first weeks with meshes (3D_Bugsandfeaturerequests.md D5-D10). 2D output is unchanged.
Added
shell: true(or a wall thickness,shell: 2) onbox,cylinderandellipsoid: only the outer wall, so a helmet can cover a head and a big tower stays under the 2M-voxel cap (D7).- W013 (any model): a part id has no voxels left because later parts cover or carve all of it; E014 (rig) and pose errors about that id say why (D7).
Changed
- Ramp shader: lit pixels are palette colours in the Compatibility renderer too (it works in sRGB space, so the ramp was converted twice and came out pale). Forward+ and Compatibility are exact; Mobile can be a few levels off in dark colours (10-bit light buffer). CI renders the demo meshes in all three renderers (D5).
extends+remove: a removed part’s inheritedrigentry goes with it, and inherited rig children of a removed part hang from its parent; rig entries the extending file writes are still checked (D6).pagan preview --closeup: the “in place” rows are framed on the part like its own row (surroundings cropped at the edges), and views are 128 px (D8).- Manifest: a mesh’s root part has
parent: ""instead ofnull, so every field has one type (D9).
Fixed
--verify-godotfailed on every mesh-only model (“texture”): mesh-only models have no sheet to check (D10).
0.8.0 - 2026-10-20
From 3D games (3D_Bugsandfeaturerequests.md D1-D4, MESH_PLAN.md). Opt-in: without “mesh” in export and
export_textures, every sprite, tileset and Godot resource is byte-identical to 0.7.0 (the manifest’s
generator changes, as with every release).
Added
export“mesh”: every 3D model also buildsmodels/<name>.glb(binary glTF 2.0: greedy-meshed voxels without T-junctions, flat normals, one node per part, animations) andmodels/<name>.ramp.png(palette ramp texture, one row per material ramp; plus<name>.<variant>.ramp.pngper variant). The manifest’smeshper model: glb, ramp, voxel_size, shading, bounds and part AABBs (metres, glTF axes: front +Z, left +X, up +Y), triangles, parts (node path, parent, pivot, aabb, voxels, meta, collision, hidden), animations (gltf_name, fps, loop, frames, interpolation, duration), variants (ramp).[mesh]settings:voxel_size(metres per voxel, default 0.0625),shading(ramp|baked|flat),collision_suffixes(Godot-convcol/-colonlynames).- Models:
directions: 0(mesh only, no sprites;sizeoptional),voxel_size(per-model override),rig:(per part id:pivot,parent,meta,collision: box | convex | none), animationinterpolation: step | linear(meshes). Rig children follow their parents’ pose moves and hiding, in sprites too. - With “godot” and “mesh”:
models/pagan_ramp.tres(palette-locked ramp shader),<name>[.<variant>][.two_sided].material.tresand<name>.tscn(the glb with PAGAN’s materials applied);--verify-godotloads every glb and tscn and checks part nodes, metadata, visibility, animations and materials against the manifest. - Lint: E014 (rig / mesh problems), and with mesh export W009 (model overrides voxel_size), W010 (part in several pieces), W011 (rig pivot outside its part); W012 (mesh-only model without mesh export).
pagan preview <model> --orbit(orbit.png: 8 headings x elevations -30, 0, 30, 60, 90),--closeup PART(closeup_.png: one part filling the view, in place and alone), --engine(engine.png: the built .tscn rendered by Godot; needs a display),--all-previews; JSON keysorbit,closeup,engine. MCPpreview(which="orbit" | "closeup" | "engine", part=...). Mesh-only models preview as orbit sheets and appear in the gallery.- Tilesets:
export_textures(true, ortiles,groupsof tiles laid out as one texture,triplanar):textures/<tileset>.<name>.pngper tile/group (+ per variant), and with “godot” a StandardMaterial3D.treseach (nearest, repeat, optional world triplanar at the meshes’ texel density); manifesttextures; the preview tiles each group 2x2. pagan init’s pagan.toml has a commented[mesh]section; the skill has a “3D games” section.- Demo: the ship and sailor export as meshes (the sailor has a
rig: head hit zone, detachable hat), the meadow exports textures, andexamples/godot/scenes/mesh_test.tscnshows them under a moving sun (CI runs it).
Changed
- Building big boxes is several times faster (bulk voxel insertion); renders are unchanged.
0.7.0 - 2026-10-19
From Age of Boom reports R20-R29 (ORCHESTRATOR_PLAN.md). Existing sources build to the same pixels; the manifest gains keys (below), so every manifest changes once.
Added
nine_slice: [left, top, right, bottom](or{ frame: [...] }) on sprites; the manifest carriesnine_slice: { frame: [l, t, r, b] }(R20).font:on sprites (glyphs,cell,baseline,line_height,advance: auto | N,spacing,space): the frames, or cells cut from them, are glyphs. The build writesfontmetrics (per glyphrectandadvance,ascent,descent,line_height) to the manifest and an AngelCode BMFontfonts/<name>.fntwith its own page imagefonts/<name>.png(font_file), which Godot imports as a FontFile;--verify-godotloads it (R21).animation_orderin the manifest: animation names in file order (R22).- Progress lines on stderr for slow steps (uncached model renders, Godot import and check);
--quietorPAGAN_QUIET=1turns them off.pagan build --godot-timeout SECONDS.PAGAN_CACHE_DIRshares the model render cache between checkouts (git worktrees); cache files are written atomically (R23). - Tileset animations take
new_row: true: the animation starts at column 0 of a fresh atlas row (R24). pagan preview --frame NAMEpicks the frame variants.png compares;--scenealso writes scene_variants.png when the tileset has variants (MCPpreview(frame=...)) (R25).- Palette-wide variants:
variants:(ramp_swap / key_swap within the palette, optionaltags) andbase_variantin a palette file; every asset using the palette (with one of the tags) gets them, its own variant of the same name wins, andvariants: { name: false }turns one off (R26). pagan.api.directional_frames(draw, size, directions)andapi.rotate_points(points, degrees, about): 2D sprites in every heading, named like model headings (R27).pagan previewalso writes 1x frames and sheets topreviews/<asset>/native/(aspagan render), listed asnativein--json(R28).lint: { max_ramps: N }: W003’s limit for one asset (R29).
Changed
- Models render in several processes (
PAGAN_JOBS, default: CPU count up to 8); output is byte-identical. YAML is parsed with libyaml when PyYAML has it. A cold (uncached) build of Age of Boom’s art (70 assets, 15 models) went from ~78 s to ~30 s on 6 cores. --verify-godot’s default limit per Godot step is 600 s (was 300 s); its summary also counts fonts.- variants.png / variants_1x.png show the first frame with pixels (was: the first frame, which for corner tilesets is empty).
Fixed
--verify-godotwithvariant_sheets = falsefailed on every asset with abase_variant(its entry has no sheet and an empty swap by design).
0.6.1 - 2026-10-18
From Age of Boom reports R18-R19 (ORCHESTRATOR_PLAN.md).
Added
pagan fit --even(and MCPfit(even=...)) pads to even sizes sogodot_offsetis whole pixels.pagan fit --jsonreportsgrown_for_pivot.
Fixed
pagan build --verify-godotcrashed withvariant_sheets = false(swap-only variants have nosheet); they are now checked for a swap table instead.- An error in the Godot check script hung the run until the 300 s timeout; it now fails within seconds
with
PAGAN_VERIFY_FAIL. A timeout says whether the import or the check hung. pagan fitcould propose a pivot outside the frame (E008) for models that don’t reach their origin (overlays whose origin is the parent’s pivot); the frame now grows to hold the pivot.
0.6.0 - 2026-10-17
Added
pagan mcp [--project DIR] [--allow-godot]: PAGAN as an MCP server over stdio, for any MCP client (optional extra:pip install "pagan[mcp]"). 23 tools that mirror the CLI (same JSON), with preview, swatch and gallery images returned inline;write_assetwrites a source and lints it in one call. Resources for the workflow, notation, BRIEF/STYLE, manifest, palettes and assets; prompts for setting up a game, making an asset, changing the look and reviewing an asset. The server only touches its project, output and preview dirs, and runs Godot only with--allow-godot.
Changed
- The MCP tools, their arguments and result keys are part of the public contract (a change to them is a
version bump, like the CLI’s
--jsonoutput).
0.5.0 - 2026-10-17
From the Space IO use report S1-S10 (SPACIO_USEREPORT.MD): flat / vector-like arcade art, freely rotated sprites. Every new setting defaults to the old behaviour.
Added
pagan init --perspective top-down|top-down-3/4|side|isosets[camera] elevation(90/42/15/30) and writes the choice into BRIEF.md (S1).pagan init --style flatwrites a STYLE.md for flat / vector-like arcade art (fill + rim, no outline, no painted light, engine glow) (S7). The skill asks for the rendering style at setup and has a recipe per style.pagan.api(S2):Canvas.polygon(points, key)(even-odd; a callable key gets the pixel’s distance to the nearest edge, for rims and bevels),Canvas.triangle,Canvas.line(..., width=)for thick strokes,api.polygon_distance(signed distance to a polygon’s outline).- Supersampling (S3, S10):
supersample = Nin pagan.toml or per asset. Sources are drawn at N x the output size;pagan buildbox-filters sheets (alpha-weighted, integer maths, byte-stable) into smooth PNGs with partial alpha. The manifest gives output-pixelsize/frames/pivot(may be fractional) plussupersampleandsource_size. Lint E003 if a size isn’t a multiple of N.pagan previewadds an “as built” row andbuilt_1x.png. - Godot import settings (S4):
[godot] mipmaps = truesetsmipmaps/generatein each built PNG’s.import(only that line; Godot keeps the rest and reimports);[godot] filter = "nearest"|"linear"puts a texture filter on the SpriteFrames (a CanvasTexture around the sheet). Verified in Godot 4.7.2. base_variant: <name>on any asset (S6): the manifest lists the base sheet under that name invariantstoo (empty swap), so a game sees one uniform set of team colours; previews label it.
Changed
pagan config showmarks[camera]/[light]as unused when the project has no 3D models (--json:used).- The pixel-art STYLE.md template says its rules are pixel-art defaults.
Fixed
- Breaking:
pagan.apiellipses and rings (API_VERSION2) no longer fill pixels whose centre lies exactly on the edge (half-integer radii, e.g. 15.5 around 16, used to leave 1px nubs at the extremes). Generators using such radii produce slightly different grids; nothing changes for other radii.
0.4.0 - 2026-10-16
From orchestrator reports R15-R17 (ORCHESTRATOR_PLAN.md).
Added
- Variant swap tables (R17b): each variant in
manifest.jsonhasswap(base “#rrggbb” -> variant “#rrggbb” for every colour it changes) andswap_exact. Sheets and.tresfiles are unchanged. - New setting
variant_sheets(default true): false skips the per-variant sheets and.tresfiles for games that recolour in a shader; a variant that can’t be expressed as a colour swap is then an error (E006). pagan previewwritesvariants.png(base + every variant, labelled) andvariants_1x.pngwhen an asset has variants (R17a).- Shared bases (R15): a model can
extends: <model>(inherit,remove: [ids]base parts, add parts, override materials/animations/variants by name);template: truemarks a base that is linted but never built. Editing a base re-renders everything that extends it. - Combinable recolours (R15):
variant_axes: { axis: { option: recolour | {} } }on any asset. Axes must recolour different keys; every combination becomes a variant named<option>+<option>(built as sheets whenvariant_sheets = true), and the manifest gets per-axis swap tables (variant_axes). - Demo: the ship has a
blueteam variant.
Changed
- Palette keys can be any single Unicode letter or digit (R16): after 0-9 a-z A-Z, use Latin-1
(à-ÿ, À-Þ, ß) and Greek letters.
pagan import --opencan extract up to 154 colours. Swatches draw the keys with a system font that has the glyphs (DejaVu Sans, Arial…) when there is one. - Source files are NFC-normalized when read (only matters for accents typed as combining marks).
0.3.0 - 2026-10-16
From orchestrator reports R7-R14 (ORCHESTRATOR_PLAN.md, Age of Boom G2-G3).
Added
- Per-asset lint suppression (R7):
lint: { disable: [W005, W007], for: { <frame|tile|animation>: [W004] } }in any sprite, tileset or model (a model’s pose animation name covers all its headings).pagan buildandpagan lintcount warnings per rule (W007×40, W005×11);build --jsonhaswarnings_by_rule. - Animated tiles (R8): tileset
animations: { water: { frames: [...], fps } }. Frames are laid out side by side in the atlas; the Godot TileSet gets an animated atlas tile (verified in Godot 4.7.2); the manifest lists the tile by its animation name and addsanimationsto the tileset entry. Tilesets without animations are laid out and exported exactly as before. - Pose rotation (R9):
roll/pitchin a pose tilt the whole model about its origin (rendered exactly); a part takesroll/pitch/yawandabout: [x, y, z](hinge) as well asoffset. - Hidden carve parts (R10):
hidden: true+carve: truecut holes only in poses that show them. pagan.api(R11, R12): a stable Python API for generator scripts:Canvasdrawing (ellipse, ring, fade, scatter, orphan handling matching W001), project-light shading, seamless noise, Match-Corners tile generation, tile-layoutcompose, the exacthull/sailgeometry (hull_reach,sail_cells,shape_cells) and canonical sprite/tileset YAML writers.pagan preview <tileset> --scene layout.txtdraws a layout of different tiles (R12).pagan fit <model>(R13): the smallest size and pivot that fit every heading and pose, and which frames the current size clips.- Demo: animated
watertileset.
Changed
- Breaking: hidden parts are overlays. A
hidden: truepart never changes the normal frames, and when a pose shows it, it’s drawn over everything. Before, a hidden part that overlapped visible voxels cut them out of the normal frames, and visible parts placed later cut holes in it. Affected models render differently where that happened (Age of Boom: the sloop’s deck had 3 voxels missing in every heading; the torn-sail copies were missing voxels in the damaged frames). - Breaking: an id used by both hidden and visible parts is an error (E013).
- Model render caches are invalidated (
RENDERER_VERSION4): the first build re-renders every model. - E007 on models counts the clipped frames and points at
pagan fit.
Removed
- W001 (orphan pixel) is no longer checked on 3D models.
Fixed
- Model findings said
tiles.<name>and pointed at theparts:line; they now sayframes.<name>with no source line (R14).
0.2.0 - 2026-10-15
From orchestrator reports R1-R6 (ORCHESTRATOR_PLAN.md), the Age of Boom PAGAN log, and review round 3.
Added
pagan --versionnames the exact build:pagan 0.1.0 (v0.1.0, ce24ab4)for a pinned git install,(editable checkout <git describe>)for a dev checkout;pagan statusshows it and warns on editable installs. The manifest’sgeneratoris unchanged (output stays byte-reproducible per release).pagan init --godot <dir>builds straight into<dir>/assets/generatedwith Godot resources; init writes.gdignorewhen the art folder is inside a Godot project.- Mirrored animations:
walk_right: { from: walk_left, flip: horizontal }generates the flipped frames. - Palette files accept
description. - New
lint.max_ramps_per_model(default 6) for W003 on models. - Models:
directions: 32(framesh00..h31); sails takerig: fore-aft(luff at the mast, reaching aft); newtriangleshape (jibs, lateens, fins, gables) with an exact normal. - New
pagan config unset. pagan new sprite --directions 4|8scaffolds the facings (right-hand ones as mirrored animations).pagan previewwritesmontage.png(frames/headings packed on the background, no labels) and reports its scale.
Changed
- Breaking: models with a non-zero
headingget frames and animations named by where they face (heading: 45, 4 directions:ne, nw, sw, seinstead ofe, n, w, s). Models withheading: 0and 1-direction models (main) are unchanged. - Breaking:
pagan bakewithout--namewrites<model>_baked, not<model>(no name clash). - Breaking: a model’s
light:/camera:override with unknown keys is an error (E013); it used to be ignored. The override accepts every[light]setting. - W003 for 3D models uses
lint.max_ramps_per_modelinstead ofmax_ramps_per_sprite(3), so some model warnings go away. pagan config setaccepts comma-separated lists (png,godot); errors show the TOML syntax. It replaces multi-line arrays, fills the commented# default_palettetemplate line, reports dates/inline tables as errors, and hints whenlight.baked/“normals” don’t match.config set default_palettelists only the assets that follow the default.--verify-godotruns its check script from a temp folder (nothing written into the game), fails on Godot import errors, and reports how many SpriteFrames/TileSets it checked (and says so when there are none).pagan new modelworks in open mode without a palette (inline starter palette); its strict-mode error says how to fix it.- Static models preview as one heading grid.
--jsonalso works before the subcommand.- Skill: install PAGAN the way the project pins it, never
pip install -eunless developing PAGAN. - Docs:
sailat, odd hull/cylinder widths; “png” output is always on; variant swaps remap keys wherever they’re used.
Fixed
- E007 was reported again for derived frames; it is reported once per problem, with authored columns for mirrored sprites.
pagan markcould write a broken file; empty values are handled and flow-style files are refused.
0.1.0 - 2026-10-15
Added
- Notation: palettes with ramps; 2D sprites (mirror, outline, derived frames, animations, variants); tilesets; 3D voxel models (primitives and layer grids, materials as ramps, 1/4/8/16 headings, pose animations with hidden/shown parts).
- Project settings in
pagan.toml, viewable and editable withpagan config(camera, light, palette, lint rules); 3D models re-render when they change. - Commands: init, new, lint, preview, gallery, render, palette show/adjust, import, bake, status, mark,
style bump, config, build (
--verify-godot), skill install. - Build output: PNG sheets,
manifest.json, optional normal maps; Godot 4 SpriteFrames and TileSet.tres. - Lint: errors E000-E013, warnings W001-W008.
- Claude skill (
pagan skill install) with the workflow and a full notation reference.