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

25 lines
669 B
Text

use mod.flow.*
/** Motion and camera direction for the source image. */
let prompt = Input{ type: @text default: "a slow push forward with drifting mist" at: vec2(40, 80) }
/** The first frame of the clip. */
let image = Input{ type: @image at: vec2(40, 240) }
let video = Video{
prompt: prompt.text()
image: image.image()
frames: 39
steps: 30
audio: true
at: vec2(360, 160)
}
/** The animated source image. */
let movie = Output{ type: @video value: video.video() at: vec2(680, 160) }
Flow{
label: "Image to video"
brief: "Animates a supplied keyframe according to a short motion direction."
prompt, image, video, movie
}