pixelkiln 0.103.0 → 0.104.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 +50 -1
- package/dist/cli.js.map +1 -1
- package/dist/index.cjs +50 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +137 -4
- package/dist/index.d.ts +137 -4
- package/dist/index.js +50 -1
- package/dist/index.js.map +1 -1
- package/docs/GENERATORS.md +24 -0
- package/docs/MANIFEST.md +3 -1
- package/package.json +1 -1
- package/schema/manifest.schema.json +27 -0
- package/schema/recipe.schema.json +7 -0
package/docs/GENERATORS.md
CHANGED
|
@@ -220,6 +220,30 @@ stale once, because the request is now different.
|
|
|
220
220
|
}
|
|
221
221
|
```
|
|
222
222
|
|
|
223
|
+
Three more `pixflux` options, each sent and hashed only when set:
|
|
224
|
+
|
|
225
|
+
- **`isometric: true`** on the style draws in isometric view. In one test
|
|
226
|
+
it clearly changed the result: the same knight came back in a
|
|
227
|
+
three-quarter stance.
|
|
228
|
+
- **`direction`** on an asset (`south`, `east`, `north-west` and so on) is
|
|
229
|
+
the way the subject faces. PixelLab calls it weakly guiding, and it was
|
|
230
|
+
weak in testing: `east` turned a front-facing knight only slightly, and
|
|
231
|
+
`west` came back all but identical to no direction at all. Say the facing
|
|
232
|
+
in the prompt as well if it matters.
|
|
233
|
+
- **`backgroundRemoval: "complex"`** on the style uses PixelLab's slower
|
|
234
|
+
background removal, meant for fine or busy edges; `"simple"` is its
|
|
235
|
+
default. On a clean-edged knight the two results were nearly the same.
|
|
236
|
+
It needs `noBackground` (on by default) and is refused without it.
|
|
237
|
+
|
|
238
|
+
```jsonc
|
|
239
|
+
"props_iso": { "generator": "pixflux", "isometric": true, "backgroundRemoval": "complex", "outDir": "art/props" }
|
|
240
|
+
// and on an asset:
|
|
241
|
+
"guard": { "prompt": "a knight holding a spear, facing right", "direction": "east" }
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
A `pixflux` style that already carried `isometric: true`, which was ignored
|
|
245
|
+
until now, will plan as stale once.
|
|
246
|
+
|
|
223
247
|
**Before November 2026 these four fields were not sent for `pixflux`.**
|
|
224
248
|
They were already part of the asset's identity, so no hash or lock entry
|
|
225
249
|
changed when that was fixed, and files already generated are untouched. A
|
package/docs/MANIFEST.md
CHANGED
|
@@ -72,6 +72,7 @@ not merely a label edit.
|
|
|
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
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
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. |
|
|
75
|
+
| `direction` | string | `pixflux` styles: the way the subject faces, one of the 8 compass directions. Weakly guiding. Part of the asset's identity only when set. |
|
|
75
76
|
| `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). |
|
|
76
77
|
| `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). |
|
|
77
78
|
| `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). |
|
|
@@ -177,7 +178,8 @@ One asset using the fields most projects reach for:
|
|
|
177
178
|
| `template` | `mannequin` | `character` only. Body template: `mannequin`, or `bear`, `cat`, `dog`, `horse`, `lion`; `custom` for `pro-flash`. |
|
|
178
179
|
| `proportions` | | `character` only, `standard` humanoid bases. A preset (`default`, `chibi`, `cartoon`, `stylized`, `realistic_male`, `realistic_female`, `heroic`) or multipliers `{ headSize, armsLength, legsLength, shoulderWidth, hipWidth }`, each 0.5 to 2. An asset may override it. |
|
|
179
180
|
| `textGuidanceScale` | `8` | `character` and `pixflux`. How closely a `standard` character base and a template loop, or a `pixflux` image, follow their text, 1 to 20. Part of a `pixflux` asset's identity only when set. Other generators ignore it. |
|
|
180
|
-
| `
|
|
181
|
+
| `backgroundRemoval` | `simple` | `pixflux` with `noBackground`: `simple` or `complex` background removal. Part of the asset's identity only when set. |
|
|
182
|
+
| `isometric` | `false` | `character` and `pixflux`. Draw `standard` character bases and every loop, or a `pixflux` image, in isometric view. Part of a `pixflux` asset's identity only when true. Other generators ignore it. |
|
|
181
183
|
| `enhancePrompt` | `false` | `character` only, `v3` bases. Let PixelLab expand the prompt into a fuller one before drawing. |
|
|
182
184
|
| `styleCharacter` | | `character` only, `pro` bases. The asset id of a generated 8-direction character in this style whose look bases drawn from text or a concept follow. An asset may override it. |
|
|
183
185
|
| `styleTraits` | all true | `character` `pro-flash` bases and `imageProFlash` styles, with a style image. `{ palette, outline, detail, shading }` booleans: which traits the style image lends. |
|
package/package.json
CHANGED
|
@@ -449,6 +449,13 @@
|
|
|
449
449
|
"isometric": {
|
|
450
450
|
"type": "boolean"
|
|
451
451
|
},
|
|
452
|
+
"backgroundRemoval": {
|
|
453
|
+
"type": "string",
|
|
454
|
+
"enum": [
|
|
455
|
+
"simple",
|
|
456
|
+
"complex"
|
|
457
|
+
]
|
|
458
|
+
},
|
|
452
459
|
"enhancePrompt": {
|
|
453
460
|
"type": "boolean"
|
|
454
461
|
},
|
|
@@ -1002,6 +1009,13 @@
|
|
|
1002
1009
|
"isometric": {
|
|
1003
1010
|
"type": "boolean"
|
|
1004
1011
|
},
|
|
1012
|
+
"backgroundRemoval": {
|
|
1013
|
+
"type": "string",
|
|
1014
|
+
"enum": [
|
|
1015
|
+
"simple",
|
|
1016
|
+
"complex"
|
|
1017
|
+
]
|
|
1018
|
+
},
|
|
1005
1019
|
"enhancePrompt": {
|
|
1006
1020
|
"type": "boolean"
|
|
1007
1021
|
},
|
|
@@ -1992,6 +2006,19 @@
|
|
|
1992
2006
|
"type": "string",
|
|
1993
2007
|
"minLength": 1
|
|
1994
2008
|
},
|
|
2009
|
+
"direction": {
|
|
2010
|
+
"type": "string",
|
|
2011
|
+
"enum": [
|
|
2012
|
+
"south",
|
|
2013
|
+
"south-east",
|
|
2014
|
+
"east",
|
|
2015
|
+
"north-east",
|
|
2016
|
+
"north",
|
|
2017
|
+
"north-west",
|
|
2018
|
+
"west",
|
|
2019
|
+
"south-west"
|
|
2020
|
+
]
|
|
2021
|
+
},
|
|
1995
2022
|
"initImageStrength": {
|
|
1996
2023
|
"type": "integer",
|
|
1997
2024
|
"minimum": 1,
|