You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Always use `background: "chromakey"` for sprites and animations.** This uses HSV-based green screen removal which is far more reliable than the old compositing equation approach.
23
+
24
+
-`chromakey` — **BEST** — pure green #00FF00, HSV-based removal, clean edges, no artifacts
Returns individual frame files: `slime-bounce-0.png`, `slime-bounce-1.png`, etc.
51
+
52
+
**Reference chain mode (default):** Generates frame 0 first, then uses it as a reference image for all subsequent frames. This ensures consistent proportions, colors, and style across all frames. Each frame is a separate API call.
53
+
54
+
To use the legacy sprite-sheet mode instead: `useReferenceChain: false`
42
55
43
56
### Background
44
57
```
@@ -58,6 +71,14 @@ forge_thumbnail
58
71
aspect: "4:3"
59
72
```
60
73
74
+
## Animation Best Practices
75
+
76
+
1.**Always provide `frameDescriptions`** — explicit per-frame descriptions produce much better results than a generic action
@@ -63,6 +64,9 @@ export function bgPromptFragment(bgKey: Background): string {
63
64
if(bgKey==='black'||bgKey==='white'){
64
65
return`Pure ${bgKey} background, completely flat solid ${bgKey} with no variation.`;
65
66
}
67
+
if(bgKey==='chromakey'){
68
+
return`Solid flat chroma key green background, EXACT hex #00FF00 (RGB 0, 255, 0) with NO gradients, NO noise, NO texture. The sprite must have a bold dark pixel outline 2-3 pixels wide around the entire shape.`;
69
+
}
66
70
return`Solid ${entry.name} background (${entry.hex}), completely flat uniform color with no variation.`;
0 commit comments