pixelkiln 0.142.2 → 0.143.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/dist/cli.js +86 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +86 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +90 -0
- package/dist/index.d.ts +90 -0
- package/dist/index.js +86 -1
- package/dist/index.js.map +1 -1
- package/docs/GENERATORS.md +15 -0
- package/docs/MANIFEST.md +1 -0
- package/docs/PIXELLAB.md +3 -2
- package/package.json +1 -1
- package/schema/manifest.schema.json +8 -0
- package/schema/recipe.schema.json +4 -0
- package/skills/pixelkiln/references/pixellab.md +3 -1
package/docs/GENERATORS.md
CHANGED
|
@@ -802,6 +802,21 @@ styles of `imagePro`, `imageProFlash`, `objectPro`, `1dir`, `character`,
|
|
|
802
802
|
set. PixelLab's `smart` flag is not sent (beta, "single images only"). The
|
|
803
803
|
full endpoint list is in [ENDPOINTS.md](./ENDPOINTS.md#target-palette-target_palette).
|
|
804
804
|
|
|
805
|
+
A long palette is easier to keep in a file. Download one from
|
|
806
|
+
[Lospec](https://lospec.com/palette-list) as a `.hex` file (or `.gpl` or
|
|
807
|
+
Paint.NET `.txt`), commit it, and point the style at it:
|
|
808
|
+
|
|
809
|
+
```json
|
|
810
|
+
"styles": {
|
|
811
|
+
"world": { "generator": "imagePro", "outDir": "art/world", "paletteFile": "palettes/apollo.hex", "paletteName": "Apollo" }
|
|
812
|
+
}
|
|
813
|
+
```
|
|
814
|
+
|
|
815
|
+
PixelKiln reads the file when it loads the manifest. The colours hash the same
|
|
816
|
+
as if they were written into `palette`, and editing the file makes every asset
|
|
817
|
+
in the style stale. A style takes `palette` or `paletteFile`, not both; a
|
|
818
|
+
child style's own one replaces its parent's.
|
|
819
|
+
|
|
805
820
|
What goes out per asset shape:
|
|
806
821
|
|
|
807
822
|
| Shape | Sent | Not sent, and why |
|
package/docs/MANIFEST.md
CHANGED
|
@@ -141,6 +141,7 @@ One asset using the fields most projects reach for:
|
|
|
141
141
|
| `detail` | string | PixelLab `map`: `low detail`, `medium detail`, or `high detail`. |
|
|
142
142
|
| `seed` | integer | Deterministic provider seed where supported. |
|
|
143
143
|
| `palette` | hex array, `[]` | The style's palette; `#` is optional. Sent to providers that take one: `pixflux` and standard characters as a swatch, PixelLab's `target_palette` for `imagePro`, `imageProFlash`, `objectPro`, `1dir`, `tiles`, `uiAsset`, `uiElement`, Pro and Pro Flash characters (and their states, portraits, outfits), Pro `terrain`, and `interpolate`/`edit-animation` revisions (2–256 colours there), Retro Diffusion, ComfyUI bindings. See [Target palette](./GENERATORS.md#target-palette). |
|
|
144
|
+
| `paletteFile` | path | The palette as a file, relative to the manifest: a Lospec `.hex`, GIMP `.gpl`, or Paint.NET `.txt`. Read into `palette` when the manifest loads, so it hashes like the same colours inline, and editing the file makes the style's assets stale. Not with `palette` on the same style. |
|
|
144
145
|
| `paletteName` | string ≤100 | Generators that send `target_palette` (`imagePro`, `imageProFlash`, `objectPro`, `1dir`, `character`, `tiles`, `terrain`, `uiAsset`, `uiElement`); needs `palette`: the palette's name (`Game Boy`, `PICO-8`), which PixelLab uses to help the look. |
|
|
145
146
|
| `maxColors` | integer 2–64 | The same generators: at most this many colours in each image, drawn from `palette` when one is set. |
|
|
146
147
|
| `enforcePalette` | boolean, `false` | Snap every downloaded PNG to the nearest `palette` colour, no dithering. Needs at least two colours. See [Palette enforcement](#palette-enforcement). |
|
package/docs/PIXELLAB.md
CHANGED
|
@@ -264,8 +264,9 @@ three rules translate directly into a manifest.
|
|
|
264
264
|
towers over every platform, so the 16px world gets a smaller hero.
|
|
265
265
|
Generate the hero first and pick `terrainTileSize` from its height.
|
|
266
266
|
3. **One palette for everything.** Every asset in the video uses the same
|
|
267
|
-
46-colour palette.
|
|
268
|
-
|
|
267
|
+
46-colour palette, Apollo from Lospec. Download it as a `.hex` file and
|
|
268
|
+
point each style's `paletteFile` at it, and PixelKiln sends it to every
|
|
269
|
+
PixelLab tool that accepts one (see
|
|
269
270
|
[Target palette](./GENERATORS.md#target-palette)).
|
|
270
271
|
|
|
271
272
|
The rest of the video, mapped to PixelKiln:
|
package/package.json
CHANGED
|
@@ -474,6 +474,10 @@
|
|
|
474
474
|
},
|
|
475
475
|
"default": []
|
|
476
476
|
},
|
|
477
|
+
"paletteFile": {
|
|
478
|
+
"type": "string",
|
|
479
|
+
"minLength": 1
|
|
480
|
+
},
|
|
477
481
|
"paletteName": {
|
|
478
482
|
"type": "string",
|
|
479
483
|
"minLength": 1,
|
|
@@ -1034,6 +1038,10 @@
|
|
|
1034
1038
|
},
|
|
1035
1039
|
"default": []
|
|
1036
1040
|
},
|
|
1041
|
+
"paletteFile": {
|
|
1042
|
+
"type": "string",
|
|
1043
|
+
"minLength": 1
|
|
1044
|
+
},
|
|
1037
1045
|
"paletteName": {
|
|
1038
1046
|
"type": "string",
|
|
1039
1047
|
"minLength": 1,
|
|
@@ -241,7 +241,9 @@ several candidates to pick from by the same size tiering as `1dir` (up to
|
|
|
241
241
|
generic background-job endpoint the same way a `revision` is. The style's
|
|
242
242
|
`palette` goes out as the beta `target_palette` (PixelLab 0.4.130): every
|
|
243
243
|
pixel of every candidate lands on those 2–256 colours, at no extra cost.
|
|
244
|
-
`
|
|
244
|
+
`paletteFile` reads the colours from a Lospec `.hex`, GIMP `.gpl`, or
|
|
245
|
+
Paint.NET `.txt` file instead, relative to the manifest; it hashes the same as
|
|
246
|
+
the inline colours. `paletteName` (needs `palette`) names it, and `maxColors` (2–64) caps each
|
|
245
247
|
candidate's colours, with or without a palette. The same `target_palette`
|
|
246
248
|
now also goes out for `imageProFlash`, `objectPro` (bases, states, `pro`
|
|
247
249
|
animations), `1dir`, `tiles`, `uiAsset`, `uiElement`, Pro and Pro Flash
|