pixelkiln 0.98.0 → 0.100.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -1
- package/dist/cli.js +182 -13
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +151 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +472 -48
- package/dist/index.d.ts +472 -48
- package/dist/index.js +147 -5
- package/dist/index.js.map +1 -1
- package/docs/CLI.md +27 -4
- package/docs/ENDPOINTS.md +58 -4
- package/docs/MANIFEST.md +39 -0
- package/docs/PIXELLAB.md +1 -1
- package/docs/REVISIONS.md +9 -1
- package/package.json +1 -1
- package/schema/manifest.schema.json +52 -0
package/docs/CLI.md
CHANGED
|
@@ -1126,6 +1126,7 @@ the result as an asset's `source`, or use it as a `styleImages` or
|
|
|
1126
1126
|
|
|
1127
1127
|
```bash
|
|
1128
1128
|
pixelkiln normal-map --from art/hero-walk.png --frames 6 --convention opengl --out art/hero-walk-normal.png
|
|
1129
|
+
pixelkiln normal-map --from art/hero.png --mode pro --kind character --surface-detail 0.5 --detail-softness 2
|
|
1129
1130
|
```
|
|
1130
1131
|
|
|
1131
1132
|
Makes the normal map of a sprite with PixelLab's `/normal-map`, so a game
|
|
@@ -1141,9 +1142,25 @@ faces, and alpha is 255 where the sprite shows and 0 elsewhere.
|
|
|
1141
1142
|
divide evenly by `--frames`. Both are checked before anything is sent.
|
|
1142
1143
|
- `--convention opengl` (the default) is green up, for Godot, Unity, and
|
|
1143
1144
|
Phaser; `--convention directx` is green down, for Unreal.
|
|
1144
|
-
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1145
|
+
- `--mode lite` (PixelLab's default) makes the map from the art alone for
|
|
1146
|
+
**0.1 generation**; `--mode pro` plans each part's shape, what is in front
|
|
1147
|
+
and what is sunk, for **0.5**. Both prices were billed live (November 2026),
|
|
1148
|
+
a whole strip included, charged only when the map is delivered. On a 64x64
|
|
1149
|
+
knight the two were close, pro defining the limbs a little more. PixelLab
|
|
1150
|
+
made lite the default when it added the mode, so a map that cost 0.5 before
|
|
1151
|
+
now costs 0.1 unless you ask for pro.
|
|
1152
|
+
- `--kind` says what the picture is: `character`, `object`, `topdown`, `side`,
|
|
1153
|
+
`iso`, or `ui`. Left out, PixelLab reads it from the picture; set it for
|
|
1154
|
+
sidescroller, isometric and UI art.
|
|
1155
|
+
- Five controls shape how the flat sprite is read as a surface. Each is
|
|
1156
|
+
optional, and PixelLab picks its own value for any you leave out:
|
|
1157
|
+
`--strength` (0–2) is how far every pixel tilts away from the viewer;
|
|
1158
|
+
`--outline-rounding` (0–3) rounds the silhouette's edge, 0 keeping it flat;
|
|
1159
|
+
`--part-shapes` (0–2) is how much a round head or an arm's cylinder adds;
|
|
1160
|
+
`--surface-detail` (0–2) turns the art's own light and dark into bumps, 0 for
|
|
1161
|
+
smooth; `--detail-softness` (0.6–3 px) blurs that detail. With outline
|
|
1162
|
+
rounding, part shapes and surface detail all at 0 the map is completely flat.
|
|
1163
|
+
- The command prints the cost and asks first; `--yes` skips the question,
|
|
1147
1164
|
`--budget <n>` refuses when `n` is below it, and `--dry-run` sends nothing.
|
|
1148
1165
|
- `--out` defaults to `<input>.normal.png` beside the input, and the input is
|
|
1149
1166
|
never overwritten. An existing `--out` is replaced only with `--force`.
|
|
@@ -1508,6 +1525,12 @@ Print the package version. `-v` is an alias.
|
|
|
1508
1525
|
| `--manifest <path>` | manifest commands | Manifest path; defaults to `pixelkiln.manifest.json`. |
|
|
1509
1526
|
| `--frames <n>` | `estimate-skeleton`/normal-map | Frames to scaffold after the estimated pose, 3–15; default 4. For normal-map, the equal frames in the `--from` strip, 1–32; default 1. |
|
|
1510
1527
|
| `--convention <c>` | normal-map | `opengl` (green up, the default) or `directx` (green down, for Unreal). |
|
|
1528
|
+
| `--mode <lite\|pro>` | normal-map | `lite` (the default, 0.1 generation) or `pro` (0.5). |
|
|
1529
|
+
| `--strength <n>` | normal-map | How far every pixel tilts away from the viewer, 0–2. |
|
|
1530
|
+
| `--outline-rounding <n>` | normal-map | How much the outline rounds off, 0–3. |
|
|
1531
|
+
| `--part-shapes <n>` | normal-map | How much the sprite's 3D parts add, 0–2. |
|
|
1532
|
+
| `--surface-detail <n>` | normal-map | The art's light and dark as bumps, 0–2. |
|
|
1533
|
+
| `--detail-softness <n>` | normal-map | How far that detail is blurred, 0.6–3 px. |
|
|
1511
1534
|
| `--lock <path>` | manifest commands | Lock path; defaults beside the manifest. |
|
|
1512
1535
|
| `--style a,b` | most workflows | Restrict styles; repeatable. |
|
|
1513
1536
|
| `--only id1,id2` | most workflows | Restrict asset ids; repeatable. An `animation.directions` shorthand id selects every loop and mirror it expands into. |
|
|
@@ -1572,7 +1595,7 @@ Print the package version. `-v` is an alias.
|
|
|
1572
1595
|
| `--part <name>` | vfx | Add a part; repeatable, applied in order. `pixelkiln vfx parts` lists them. |
|
|
1573
1596
|
| `--sprite <ref>` | vfx | Build the effect around a sprite: a local PNG/JPEG, a URL, or `character:<id>:<direction>`. |
|
|
1574
1597
|
| `--fps <n>` | vfx | Frame rate, 1–60. |
|
|
1575
|
-
| `--kind <
|
|
1598
|
+
| `--kind <kind>` | asset/normal-map | asset: `object` (the default) or `character`. normal-map: what the picture is, `character`, `object`, `topdown`, `side`, `iso`, or `ui`. |
|
|
1576
1599
|
| `--size <WxH>` | asset canvas | The new canvas, in multiples of 4. |
|
|
1577
1600
|
| `--animation <id>` | asset mirror/export | An animation group id. |
|
|
1578
1601
|
| `--direction <dir>` | asset mirror/expand/export | The direction to flip, the way an object faces before expansion, or a GIF's direction. |
|
package/docs/ENDPOINTS.md
CHANGED
|
@@ -86,8 +86,8 @@ not probed.
|
|
|
86
86
|
| `GET /balance` | `doctor`, `gen` balance reads, gallery | Measured live | Free. Count is at `subscription.generations` ([Reproducing these numbers](#reproducing-these-numbers)). | Only the subscription shape is documented; a credit-only account's reply is not recorded. | Low |
|
|
87
87
|
| `GET /pro-flash/cost` | Pro Flash estimates for `character` and `imageProFlash` | Measured live | Free quote. For `operation=character`: image 5 up to 96px, 6 to 208px, 9 above, plus rotations; two live jobs (7 and 2) billed exactly the quote ([Characters, measured](#characters-measured)). | Quotes for `create`, `edit` and `inpaint` are recorded from PixelLab's MCP `get_pro_flash_capabilities`, not from this route (roadmap, "Pro Flash for plain image create, edit, and inpaint"). | Low |
|
|
88
88
|
| `GET /background-jobs/{id}` | every job poll; where the billed amount is read | Measured live | `usage` at the top level and again at `last_response.billing_usage`; confirmed for a `map` object (1), a standard character base (1) and the skeleton jobs ([Limits and billing](#limits-and-billing)). | Jobs are deleted 8 hours after finishing, so a bill not read in time is lost (the v3 base bill was). | Low |
|
|
89
|
-
| `POST /create-image-pixflux` | `pixflux` | Measured live | 1 generation, PNG inline, about 10 s; `color_image` is a hard palette lock (130 badges, 65 of 65 in each set) ([Single-image generators, measured](#single-image-generators-measured)). Ran in `benchmarks/provider-environments/pixellab`. | None recorded. | Low |
|
|
90
|
-
| `POST /map-objects` (+ `GET /map-objects/{id}`, falling back to `GET /objects`) | `map` | Measured live | 1 generation, job about 30 s; the job record expires after 8 hours but the image survives ([Object lifecycle](#object-lifecycle)). `color_image` returns 500. | The `scene` field (`background_image` + inpainting): "Unverified until a real call is billed" ([GENERATORS.md](./GENERATORS.md), `map`). | Low |
|
|
89
|
+
| `POST /create-image-pixflux` | `pixflux` | Measured live | 1 generation, PNG inline, about 10 s; `color_image` is a hard palette lock (130 badges, 65 of 65 in each set) ([Single-image generators, measured](#single-image-generators-measured)). Ran in `benchmarks/provider-environments/pixellab`. `init_image` with `init_image_strength` 30, 100, 300 and 800 each billed the usual 1 (November 2026; see [Init images](#init-images-measured)). | None recorded. | Low |
|
|
90
|
+
| `POST /map-objects` (+ `GET /map-objects/{id}`, falling back to `GET /objects`) | `map` | Measured live | 1 generation, job about 30 s; the job record expires after 8 hours but the image survives ([Object lifecycle](#object-lifecycle)). `color_image` returns 500. `init_image` at the same four strengths billed 1 each (November 2026; see [Init images](#init-images-measured)). | The `scene` field (`background_image` + inpainting): "Unverified until a real call is billed" ([GENERATORS.md](./GENERATORS.md), `map`). | Low |
|
|
91
91
|
| `POST /generate-image-v2` | `imagePro` | Measured live | A 64×64 call billed 10 (40 before the cut) and 10 again with `target_palette`; the completed job was read and a candidate downloaded through `gen` ([October 2026 Pro price cut](#october-2026-pro-price-cut), [Target palette](#target-palette-target_palette)). | Canvases above 65536px² (15 and 25 tiers) are priced from the shared Pro ladder, not measured here; `reference_images` and `style_image` are unmodeled. | High |
|
|
92
92
|
| `POST /create-image-pro-flash` | `imageProFlash` | Measured live | A 32×32 still with a four-colour `target_palette` billed 5, in only those colours (November 2026; [GENERATORS.md](./GENERATORS.md#target-palette)). | Larger canvases (quote 9 at 256px) and the style-image path were never billed. | Medium |
|
|
93
93
|
| `POST /edit-image-pro-flash` | revision `engine: "pro-flash"`, `image-to-image` | Mock only | Quote 5 at 64px, provisional, from MCP (roadmap, "Pro Flash for plain image create, edit, and inpaint"). | Never billed; completed-job shape never read live; the `reference` edit method is unmodeled. | Medium |
|
|
@@ -105,7 +105,7 @@ not probed.
|
|
|
105
105
|
| `POST /reduce-colors` | revision `reduce-colors` | Measured live | 0.1 generations at 32×32, balance diff and `usage` agree ([Cleanup tier, measured](#cleanup-tier-measured), September 2026). | Larger canvases; the price of a multi-frame set call is unmeasured. | Low |
|
|
106
106
|
| `POST /correct-pixelart` | revision `correct-pixelart` | Measured live | 0.1 generations at 32×32 ([Cleanup tier, measured](#cleanup-tier-measured)). | Larger canvases and multi-frame sets, as above. | Low |
|
|
107
107
|
| `POST /unzoom` | `pixelkiln unzoom` | Unknown | "Cost unmeasured; PixelLab's MCP tool description claims 0.1" ([Cleanup tier, measured](#cleanup-tier-measured)). Nothing records a live run. | Everything. | Low |
|
|
108
|
-
| `POST /normal-map` | revision `normal-map`, `pixelkiln normal-map` | Measured live | An 8-frame 1304×26 strip and a 64×64 revision each billed 0.5; the map comes back the input's size with matching alpha ([Normal map](#normal-map-post-normal-map-measured-once), October 2026). | The `directx` convention; strips near the 32-frame limit. | Low |
|
|
108
|
+
| `POST /normal-map` | revision `normal-map`, `pixelkiln normal-map` | Measured live | An 8-frame 1304×26 strip and a 64×64 revision each billed 0.5; the map comes back the input's size with matching alpha ([Normal map](#normal-map-post-normal-map-measured-once), October 2026). November 2026: lite (now the default) billed 0.1 six times and pro 0.5 once, with the shape controls. | The `directx` convention; strips near the 32-frame limit. | Low |
|
|
109
109
|
| `POST /generate-ui-v2` | `uiElement` | Measured live | A 32×32 call billed 10 and the review page showed 64 candidates at 32×32 (November 2026, Tier 3; the plan said 1 candidate and now follows `uiElementCandidateCount`). Planned on the 10/15/25 ladder ([GENERATORS.md](./GENERATORS.md#uielement)). `target_palette` sent, mock only. | Other sizes (the 15 and 25 tiers and the other candidate bands, which come from PixelLab's published grid), and the concept-image path. | High |
|
|
110
110
|
| `POST /create-1-direction-object` (+ `GET /objects/{id}`) | `1dir` | Measured live | A 32px, 3-description `batch` billed 20 (the pre-cut floor) and `item_descriptions[0]` owned slot 0 ([Candidates](#candidates)); candidate counts follow size. `target_palette` sent, mock only. | No bill since the October 2026 cut (10 / 15 / 25 is PixelLab's published ladder); tiers above the floor under `item_descriptions`. | High |
|
|
111
111
|
| `POST /objects/{id}/select-frames` | `1dir` and `batch` pick | Run live, not measured | Promoted three candidates in the live batch run ([Candidates](#candidates)); `indices` is plural. | Its cost was not recorded. | Low |
|
|
@@ -119,7 +119,7 @@ not probed.
|
|
|
119
119
|
| `POST /create-tiles-pro` (+ `GET /tiles-pro/{id}`) | `tiles` | Measured live | One numbered description, 4 tiles at 16px, with a Game Boy `target_palette`, billed 10, every candidate in the palette (November 2026). `GET` has no `status`: 423 while drawing ([Tilesets: measured once per kind](#tilesets-measured-once-per-kind)). | `tile_feature` sets (`roads`, `tileset`, `building`) and `tile_rules`; large tile-size × variation canvases that reach the top tier. | High |
|
|
120
120
|
| `POST /create-tileset` (+ `GET /tilesets/{id}`) | `terrain`, top-down | Measured live | Pro 32px billed 15 (three sets, one connected through `lower_base_tile_id`, one with edge slope); Pro 64px billed 25 and returned 25 tiles at transition 0.5; standard sets billed 3 each (planned 4), one connected through `upper_base_tile_id` ([Tilesets: measured once per kind](#tilesets-measured-once-per-kind), October 2026). `target_palette` on Pro, mock only. In November 2026 five standard 16px sets billed 1 each, with `shape_seed`, side walls, `enhance: false`, walkable flags, and reference images ([Tileset options, November 2026](#tileset-options-november-2026-measured)). | Pro below 32px; standard above 32px; a standard set cannot connect to a Pro set. | High |
|
|
121
121
|
| `POST /create-tileset-sidescroller` | `terrain`, `terrainOrientation: "sidescroller"` | Measured live | Since November 2026: a standard 16px set billed 1 and a pro 16px set billed 15; 16 tiles each; a standard request with `lower_base_tile_id` is refused with a 422. The older model billed 3 ([Tileset options, November 2026](#tileset-options-november-2026-measured)). | `lower_reference_image` (pro) and `transition_reference_image` (standard) are mock only; 32px. | High |
|
|
122
|
-
| `POST /create-isometric-tile` (+ `GET /isometric-tiles/{id}`) | `isometricTile` | Measured live | One 32px `block` billed 1 generation, not the schema's `usd: 0.02` example ([Standalone isometric tile](#standalone-isometric-tile-schema-documented-cost-measured-once)). | Other sizes and shapes; flat pricing across 16 to 64px is an assumption. | Low |
|
|
122
|
+
| `POST /create-isometric-tile` (+ `GET /isometric-tiles/{id}`) | `isometricTile` | Measured live | One 32px `block` billed 1 generation, not the schema's `usd: 0.02` example ([Standalone isometric tile](#standalone-isometric-tile-schema-documented-cost-measured-once)). | Other sizes and shapes; flat pricing across 16 to 64px is an assumption. `init_image` is sent but mock only. | Low |
|
|
123
123
|
| `POST /create-ui-asset` (+ `GET /ui-assets/{id}`) | `uiAsset` | Measured live | One 256×192 call billed 20, the low end of the quoted 20 to 40; the plan prices 40 ([UI panels](#ui-panels-one-endpoint-schema-documented-cost-unverified), September 2026). | A second size; `pixelkiln plan` over-reads. | High |
|
|
124
124
|
| `POST /ui-assets/{id}/split` | `pixelkiln ui split` | Measured live | Free; a 256×192 template split into the 3 elements its `split_preview` listed. A second split is refused client-side ([UI split, states and 9-slice](#ui-split-states-and-9-slice-measured)). | Custom `boxes` are mock only. | Low |
|
|
125
125
|
| `POST /ui-assets/states` | `pixelkiln ui states` | Measured live | One 86×38 element in 2 states quoted and billed 10; about a minute. State images differ in size from their element. | The 15 and 25 tiers, several elements in one call, and `target_palette` are mock only. | High |
|
|
@@ -218,6 +218,33 @@ set the row to Run live, not measured rather than leaving it Mock only.
|
|
|
218
218
|
|
|
219
219
|
---
|
|
220
220
|
|
|
221
|
+
## Init images, measured
|
|
222
|
+
|
|
223
|
+
`init_image` and `init_image_strength` (1 to 999, default 300) on
|
|
224
|
+
`/create-image-pixflux`, `/map-objects` and `/create-isometric-tile`, wrapped
|
|
225
|
+
as an asset's `initImage` and `initImageStrength`
|
|
226
|
+
([manifest reference](./MANIFEST.md#starting-from-an-image)). Measured on 14
|
|
227
|
+
November 2026 (Tier 3): a 64×64 knight as the starting image, the prompt "a
|
|
228
|
+
knight in golden armor with a red cape", `seed` 77, on both `pixflux` and
|
|
229
|
+
`map`. Ten calls, each billed 1 generation, the same as without an init image.
|
|
230
|
+
|
|
231
|
+
| `init_image_strength` | Result, the same on both generators |
|
|
232
|
+
|---|---|
|
|
233
|
+
| none sent (no init image) | a gold knight with a red cape |
|
|
234
|
+
| 30 | a new gold knight; the starting image sets only scale and placement |
|
|
235
|
+
| 100 | the starting silhouette and armor with gold trim and a red cape |
|
|
236
|
+
| 300 (the default) | the starting image lightly redrawn; the prompt's colors absent |
|
|
237
|
+
| 800 | the starting image, all but unchanged |
|
|
238
|
+
|
|
239
|
+
- The default holds far harder than a "300 of 999" suggests: at 300 the prompt
|
|
240
|
+
changed nothing visible. A restyle that keeps the shape wants about 100.
|
|
241
|
+
- The starting image and the output were both 64×64. Whether a different size
|
|
242
|
+
is accepted, scaled or refused was not tried.
|
|
243
|
+
- `/create-isometric-tile` takes the same two fields; PixelKiln sends them, with
|
|
244
|
+
mocked tests only.
|
|
245
|
+
|
|
246
|
+
---
|
|
247
|
+
|
|
221
248
|
## Single-image generators, measured
|
|
222
249
|
|
|
223
250
|
The endpoints that produce one standalone image. This is the decision that
|
|
@@ -770,6 +797,33 @@ matched the source's pixel for pixel, so the strip cuts back into the same
|
|
|
770
797
|
8 frames. Wired up as the `normal-map` revision mode and `pixelkiln
|
|
771
798
|
normal-map` ([REVISIONS.md](./REVISIONS.md#normal-maps)).
|
|
772
799
|
|
|
800
|
+
**Lite, pro and the shape controls, measured November 2026.** PixelLab added
|
|
801
|
+
`mode` (`lite`, the default, or `pro`), `kind`, `strength`, and four shape
|
|
802
|
+
fields, and made lite the default, so the same request now costs a fifth of
|
|
803
|
+
what it did. On a 64×64 sprite (Tier 3):
|
|
804
|
+
|
|
805
|
+
| Request | Billed |
|
|
806
|
+
|---|---|
|
|
807
|
+
| no options (lite) | 0.1 |
|
|
808
|
+
| `outline_rounding` 0, `part_shapes` 0, `surface_detail` 0 | 0.1 |
|
|
809
|
+
| `outline_rounding` 3, `part_shapes` 2, `surface_detail` 2, `detail_softness` 0.6 | 0.1 |
|
|
810
|
+
| `detail_softness` 3 | 0.1 |
|
|
811
|
+
| `strength` 0.3; `strength` 2 | 0.1 each |
|
|
812
|
+
| `mode: "pro"`, `kind: "character"` | 0.5 |
|
|
813
|
+
| `strength` 3 | 0, **422** |
|
|
814
|
+
|
|
815
|
+
- With the three shape amounts at 0 the map is one flat color: no surface at
|
|
816
|
+
all. At their maximum it is deep relief; `detail_softness` 3 leaves a smooth
|
|
817
|
+
rounded form.
|
|
818
|
+
- `strength` is capped at 2, which the schema does not say: 3 answered `422
|
|
819
|
+
Input should be less than or equal to 2`.
|
|
820
|
+
- Lite and pro were close on this sprite; pro defined the limbs a little more.
|
|
821
|
+
- The plan priced every normal map at 0.5. It now prices 0.1 unless the
|
|
822
|
+
revision sets `normalMapMode: "pro"`.
|
|
823
|
+
|
|
824
|
+
Not measured: `kind` values other than `character`, a strip on pro, and these
|
|
825
|
+
controls on anything but a single 64×64 sprite.
|
|
826
|
+
|
|
773
827
|
---
|
|
774
828
|
|
|
775
829
|
## Tilesets: measured once per kind
|
package/docs/MANIFEST.md
CHANGED
|
@@ -70,6 +70,8 @@ not merely a label edit.
|
|
|
70
70
|
| `portrait` | object | `character` styles: a bust of a base or state's south sprite, `{ "of": "<asset>", "size": 64 }`; `size` is 16, 32, 48, 64 (default), 128, or 160. See [Portraits](./CHARACTERS.md#portraits). |
|
|
71
71
|
| `outfit` | object | `character` styles: an existing loop's frames re-clothed from an outfit image, `{ "of": "<loop asset>", "reference": "<image>" }`, with optional `additionalInstructions`. See [Outfit transfer](./CHARACTERS.md#outfit-transfer). |
|
|
72
72
|
| `mirror` | string | Another asset of the same style flipped left to right, made locally at no cost. See [Mirrors](./CHARACTERS.md#mirrors). |
|
|
73
|
+
| `initImage` | string | `pixflux`, `map` and `isometricTile` styles: a PNG to start the drawing from, relative to the manifest. See [Starting from an image](#starting-from-an-image). |
|
|
74
|
+
| `initImageStrength` | integer 1–999, default 300 | With `initImage`: how strongly the starting image holds. About 100 blends it with the prompt; 300 and up mostly returns it. |
|
|
73
75
|
| `terrainReferences` | object | `terrain` styles: a PNG per terrain to take that terrain's look from, `{ "lower": "refs/water.png", "upper": "refs/sand.png", "transition": "refs/foam.png" }`, paths relative to the manifest. See [Terrain reference images](./TILES.md#terrain-reference-images). |
|
|
74
76
|
| `derive` | object | Made from existing pixels by one local transform, at no cost, with no provider. See [Derived and external assets](#derived-and-external-assets). |
|
|
75
77
|
| `external` | object | Built by a script or tool outside pixelkiln; pixelkiln records and tracks the file but never builds it. See [Derived and external assets](#derived-and-external-assets). |
|
|
@@ -526,6 +528,43 @@ their own page: [Characters](./CHARACTERS.md) and
|
|
|
526
528
|
}
|
|
527
529
|
```
|
|
528
530
|
|
|
531
|
+
## Starting from an image
|
|
532
|
+
|
|
533
|
+
A `pixflux`, `map` or `isometricTile` asset can start from a PNG instead of
|
|
534
|
+
from nothing:
|
|
535
|
+
|
|
536
|
+
```json
|
|
537
|
+
"gold_knight": {
|
|
538
|
+
"prompt": "a knight in golden armor with a red cape",
|
|
539
|
+
"initImage": "art/knight.png",
|
|
540
|
+
"initImageStrength": 100
|
|
541
|
+
}
|
|
542
|
+
```
|
|
543
|
+
|
|
544
|
+
PixelLab reworks the image toward the prompt. `initImageStrength` (1 to 999)
|
|
545
|
+
sets how strongly the starting image holds, and its default of 300 holds much
|
|
546
|
+
harder than the number suggests. Measured on a 64x64 knight with the prompt
|
|
547
|
+
above (November 2026, the same on `pixflux` and `map`):
|
|
548
|
+
|
|
549
|
+
| Strength | Result |
|
|
550
|
+
|---|---|
|
|
551
|
+
| 30 | The prompt wins: a new gold knight at about the same scale and placement. |
|
|
552
|
+
| 100 | A blend: the original silhouette and armor, with gold trim and a red cape. |
|
|
553
|
+
| 300 (default) | The starting image, lightly redrawn. No gold, no red. |
|
|
554
|
+
| 800 | The starting image, all but unchanged. |
|
|
555
|
+
|
|
556
|
+
So to restyle a sprite while keeping its shape, set about 100; leave the
|
|
557
|
+
default only when you want a faithful redraw. For a controlled edit of an
|
|
558
|
+
existing asset, with a parent the plan tracks, a
|
|
559
|
+
[revision](./REVISIONS.md) is the better tool; `initImage` is for a loose
|
|
560
|
+
starting file.
|
|
561
|
+
|
|
562
|
+
The file is hashed into the asset's identity, with the strength when it is
|
|
563
|
+
set, so replacing it marks the asset stale and renaming it does not. A missing
|
|
564
|
+
file is a manifest error, and a file changed between `plan` and `gen` is
|
|
565
|
+
refused at submit. It costs nothing extra: each of these billed the
|
|
566
|
+
generator's usual 1 generation.
|
|
567
|
+
|
|
529
568
|
## Controlled revisions
|
|
530
569
|
|
|
531
570
|
```jsonc
|
package/docs/PIXELLAB.md
CHANGED
|
@@ -168,7 +168,7 @@ PixelLab 0.4.130 (October 2026) added four things. PixelKiln covers each:
|
|
|
168
168
|
recipes still render free on the workbench. See
|
|
169
169
|
[Generator selection](./GENERATORS.md#described-effects-the-paid-vfx-artist).
|
|
170
170
|
- **Normal maps.** A `normal-map` revision makes one for a sprite or a whole
|
|
171
|
-
loop at 0.5
|
|
171
|
+
loop at 0.1 generations (0.5 on pro), and `pixelkiln normal-map` does it for a loose
|
|
172
172
|
file. See [Controlled asset revisions](./REVISIONS.md#normal-maps).
|
|
173
173
|
|
|
174
174
|
Each has been billed live and matched the plan: Pro sets at 32px (15) and
|
package/docs/REVISIONS.md
CHANGED
|
@@ -263,6 +263,14 @@ strip each billed exactly 0.5).
|
|
|
263
263
|
- `convention` is `opengl` (PixelLab's default: green up, for Godot, Unity,
|
|
264
264
|
and Phaser) or `directx` (green down, for Unreal). It is rejected on other
|
|
265
265
|
modes and enters the spec hash only when set. `strength` is refused.
|
|
266
|
+
- `normalMapMode` is `lite` (PixelLab's default, 0.1 generation) or `pro`
|
|
267
|
+
(0.5). `normalMapKind` says what the picture is (`character`, `object`,
|
|
268
|
+
`topdown`, `side`, `iso`, `ui`). `normalMapStrength` (0–2),
|
|
269
|
+
`outlineRounding` (0–3), `partShapes` (0–2), `surfaceDetail` (0–2) and
|
|
270
|
+
`detailSoftness` (0.6–3) shape the surface; see
|
|
271
|
+
[the command's reference](./CLI.md#normal-map) for what each does. All are
|
|
272
|
+
rejected on other modes and enter the spec hash only when set, so a normal
|
|
273
|
+
map made before them is not stale.
|
|
266
274
|
- The parent must be a PNG, 8 to 512 pixels per side; both are checked at
|
|
267
275
|
plan time.
|
|
268
276
|
- **A loop goes as one strip.** When the parent is an animation (its
|
|
@@ -271,7 +279,7 @@ strip each billed exactly 0.5).
|
|
|
271
279
|
carries it to the rest, so the light holds steady across the loop instead
|
|
272
280
|
of flickering. The returned strip is cut back into `-frame-NN.png` files
|
|
273
281
|
under the parent's roles, keeping its playback rate. A whole loop is one
|
|
274
|
-
call, so it costs 0.5
|
|
282
|
+
call, so it costs the same as one sprite: 0.1 on lite, 0.5 on pro.
|
|
275
283
|
- **A character's directions are refused.** They are separate views, not
|
|
276
284
|
frames of one motion: sent as a strip, each would be shaped from the first
|
|
277
285
|
direction, and one call per direction would put several paid jobs behind
|
package/package.json
CHANGED
|
@@ -1263,6 +1263,49 @@
|
|
|
1263
1263
|
"directx"
|
|
1264
1264
|
]
|
|
1265
1265
|
},
|
|
1266
|
+
"normalMapMode": {
|
|
1267
|
+
"type": "string",
|
|
1268
|
+
"enum": [
|
|
1269
|
+
"lite",
|
|
1270
|
+
"pro"
|
|
1271
|
+
]
|
|
1272
|
+
},
|
|
1273
|
+
"normalMapKind": {
|
|
1274
|
+
"type": "string",
|
|
1275
|
+
"enum": [
|
|
1276
|
+
"character",
|
|
1277
|
+
"object",
|
|
1278
|
+
"topdown",
|
|
1279
|
+
"side",
|
|
1280
|
+
"iso",
|
|
1281
|
+
"ui"
|
|
1282
|
+
]
|
|
1283
|
+
},
|
|
1284
|
+
"normalMapStrength": {
|
|
1285
|
+
"type": "number",
|
|
1286
|
+
"minimum": 0,
|
|
1287
|
+
"maximum": 2
|
|
1288
|
+
},
|
|
1289
|
+
"outlineRounding": {
|
|
1290
|
+
"type": "number",
|
|
1291
|
+
"minimum": 0,
|
|
1292
|
+
"maximum": 3
|
|
1293
|
+
},
|
|
1294
|
+
"partShapes": {
|
|
1295
|
+
"type": "number",
|
|
1296
|
+
"minimum": 0,
|
|
1297
|
+
"maximum": 2
|
|
1298
|
+
},
|
|
1299
|
+
"surfaceDetail": {
|
|
1300
|
+
"type": "number",
|
|
1301
|
+
"minimum": 0,
|
|
1302
|
+
"maximum": 2
|
|
1303
|
+
},
|
|
1304
|
+
"detailSoftness": {
|
|
1305
|
+
"type": "number",
|
|
1306
|
+
"minimum": 0.6,
|
|
1307
|
+
"maximum": 3
|
|
1308
|
+
},
|
|
1266
1309
|
"description": {
|
|
1267
1310
|
"type": "string",
|
|
1268
1311
|
"minLength": 1
|
|
@@ -1883,6 +1926,15 @@
|
|
|
1883
1926
|
"type": "string",
|
|
1884
1927
|
"minLength": 1
|
|
1885
1928
|
},
|
|
1929
|
+
"initImage": {
|
|
1930
|
+
"type": "string",
|
|
1931
|
+
"minLength": 1
|
|
1932
|
+
},
|
|
1933
|
+
"initImageStrength": {
|
|
1934
|
+
"type": "integer",
|
|
1935
|
+
"minimum": 1,
|
|
1936
|
+
"maximum": 999
|
|
1937
|
+
},
|
|
1886
1938
|
"terrainReferences": {
|
|
1887
1939
|
"type": "object",
|
|
1888
1940
|
"properties": {
|