makepad/libs/flow/recipes/templates/sprite-enhance.splash
Arena Agent d8d5ea8b6a Repair integration manifests and port nigig exports onto upstream widget families
Restore missing required asset/flow packages from the pinned nigig revision; retain upstream script isolation, X11 hover, and widget-core fixes. Validated makepad-widgets data feature with Rust 1.97.1.
2026-10-26 11:23:26 +00:00

20 lines
750 B
Text

use mod.flow.*
/** The high-detail redraw instruction. */
let prompt = Input{ type: @text default: "redraw at modern high detail while preserving silhouette, pose, palette, and identity" }
/** The sprite or classic-game artwork to enhance. */
let image = Input{ type: @image }
let enhance = ImageEdit{
prompt: prompt.text()
image: image.image()
strength: 1.0
model: "flux2-dev"
}
/** Publish the high-detail redraw into the flow asset library. */
let published = Publish{ value: enhance.out(@image) namespace: "flows" tags: ["flow", "sprite", "enhanced"] }
Flow{
label: "Sprite enhance"
brief: "Re-renders supplied sprite artwork at high detail with the creator's FLUX.2 Dev preset."
prompt, image, enhance, published
}