makepad/libs/flow/recipes/templates/text-to-image.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

13 lines
480 B
Text

use mod.flow.*
/** What to paint. */
let prompt = Input{ type: @text default: "a small brass robot on a workbench" }
let image = Image{ prompt: prompt.text() width: 512 height: 512 }
/** Publish the generated picture into the flow asset library. */
let published = Publish{ value: image.image() namespace: "flows" tags: ["flow", "image"] }
Flow{
label: "Text to image"
brief: "Paints a 512-square image directly from the supplied prompt."
prompt, image, published
}