Outfits
The default. region is body: the provider may repaint the figure's own
pixels below the neck and nothing else, so clothing cannot grow past the
silhouette and the head cannot move.
"hero.leather": {
"prompt": "Dress every masked cyan mannequin on this spritesheet in the same ...",
"layer": { "of": ["hero", "hero.walk.south"] }
}
Prompt notes, from the runs that worked:
- Say that it is a sheet of the same figure and that every one gets the same outfit.
- List the garments and their colours. The model fills gaps differently in each cell otherwise.
- Tell it to keep the cyan skin cyan on hands, forearms and neck.
- List what not to add: hair, hats, weapons, props, backgrounds.
- The style's
promptPrefixandpromptSuffixare not applied to a layer. They describe the character, who is already on the sheet.
Measured on 56 frames (8 rotations and a 6-frame walk in 8 directions): every frame dressed, the outfit consistent across all of them, and the layer covering 80 to 92% of each figure's masked area, the rest being skin left bare.
A character that is not bare needs skin: the colours that are skin, so
that only they are keyed. It works, but the old clothes show wherever the new
outfit is narrower (80 stray pixels across 38 frames in the one run that
tried it).
"layer": { "of": ["mira", "mira.walk.south"], "skin": ["#f6b58a", "#e58a62", "#f2a076", "#d87855"] }
One piece at a time
An outfit does not have to be one layer. Ask for a single garment and say what stays bare, and the same mask gives a layer holding only that garment: whatever the provider leaves cyan is dropped, so nothing marks where the shirt ends but the shirt.
"hero.shirt": {
"prompt": "Dress every cyan mannequin on this spritesheet in the same red long-sleeved tunic shirt with a darker red hem, covering the chest, back, shoulders and arms down to the wrists and ending at the hips. Keep the shirt the same colour and cut in every cell. Only the shirt: leave the hips, legs, feet, hands, neck and head bare cyan exactly as they are. Do not add trousers, shorts, underwear, belts, shoes, gloves, hats, hair or items.",
"layer": { "of": ["hero", "hero.walk.south", "hero.walk.east"] }
},
"hero.trousers": {
"prompt": "Dress every cyan mannequin on this spritesheet in the same pair of brown trousers with a dark leather belt, covering the hips and both legs from the waist down to the ankles. Keep the trousers the same colour and cut in every cell. Only the trousers: leave the chest, back, shoulders, arms, hands, feet, neck and head bare cyan exactly as they are. Do not add shirts, shoes, boots, gloves, hats, hair or items.",
"layer": { "of": ["hero", "hero.walk.south", "hero.walk.east"] }
}
![]()
The shirt and trousers above, measured on 20 frames: both runs dressed every frame with only the garment asked for, and the two stack, trousers first, with the shirt's hem over the waistband. Each cost 10 generations as quoted, the sheet being small.
Draw the pieces in the order they are worn: trousers, shirt, coat. Two pieces are two requests, so they are consistent with themselves and not designed together; name colours that go with each other.
Colours for nothing
A drawn layer can be recoloured locally, every frame at once, with a
derive asset. hue-shift
turns the hue and keeps each pixel's shading, and hue limits it to one
range of colour so that trim in another colour stays put:
"hero.warcape.blue": { "derive": { "from": "hero.warcape", "transform": "hue-shift", "degrees": -120, "hue": [320, 20] } },
"hero.robe.crimson": { "derive": { "from": "hero.robe", "transform": "hue-shift", "degrees": 72, "hue": [240, 320],
"saturation": 1.5, "brightness": 1.3 } }
The first turns a crimson cape blue and leaves its grey fur collar alone,
since grey has no hue to turn. The second takes a purple robe to red and
leaves the gold trim gold; dark purple turned to red comes out brown until
it is brightened, hence the two multipliers. Each writes one frame per frame
of its source under the same names, costs nothing, and is stale when the
layer it came from is regenerated. Five such variants of the layers on this
page took one free gen.
It recolours; it does not redesign. A layer whose parts share a hue all turn together.
Skin tones. The same transform on the bare base gives other skins, since a base built for layers is nothing but skin and outline. Derive the base and each of its loops with the same numbers:
"hero.brown": { "derive": { "from": "hero", "transform": "hue-shift", "hue": [0, 45],
"degrees": -4, "saturation": 1.3, "brightness": 0.64 } },
"hero.walk.south.brown": { "derive": { "from": "hero.walk.south", "transform": "hue-shift", "hue": [0, 45],
"degrees": -4, "saturation": 1.3, "brightness": 0.64 } }
Tried on this page's base: brightness 0.86, 0.64 and 0.44 with
saturation 1.2 to 1.3 gave tan, brown and deep brown that read as skin,
and turning the hue instead gave an orc green (degrees 78) and a frost
blue (-175). Every drawn layer goes over them unchanged, because a layer has
no skin in it.
A grasp layer does have skin in it: the fingers, in the first base's
colours. Derive it with the same numbers and the item's own warm colours
turn too; a torch's flame and a gold crossguard went green with the orc.
reference prevents that. It limits the change to pixels in a colour the
named PNGs use, and the base's own frames use only skin and outline:
"hero.torch.orc": { "derive": { "from": "hero.torch", "transform": "hue-shift", "hue": [0, 45],
"degrees": 78, "saturation": 0.95, "brightness": 0.82,
"reference": ["art/hero-south.png", "art/hero.walk.south-frame-00.png"] } }
List every frame of the base and its loops, up to 64 files; the fingers were coloured from all of them. On the four gripped items here that moved the fingers and left the items alone, since each item sprite shared at most one warm colour with the base.
One thing does not follow: a near-white highlight has no hue, so it is left alone, and a sheen that was invisible on pale skin shows as white specks on dark. The stills had none; one walk frame did.
Layers are keyed against the base they were generated over, so make them on the original and put them over any of its recolours.
The wire figure. Asked for part of an outfit, a provider still redraws the outline of the limbs it left bare, slightly changed, and those pixels would come back as a thin outline of the whole body in every layer. The cut step removes them: a dark pixel stays only when it borders a coloured layer pixel or sits in a solid 2×2 block. On the two runs above that removed 1,623 and 2,265 outline pixels and 1 coloured one. On the 56-frame full outfit it removed 551, the outline around the bare hands and neck, and no coloured ones.
