makepad/libs/flow/recipes/templates/matte.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

19 lines
483 B
Text

use mod.flow.*
/** The image whose subject should be cut out. */
let image = Input{ type: @image at: vec2(40, 120) }
let matte = Matte{
image: image.image()
model: "birefnet-hr"
at: vec2(360, 120)
}
/** The RGBA cutout with a soft alpha matte. */
let cutout = Output{ type: @image value: matte.out(@image) at: vec2(680, 120) }
Flow{
label: "Image matte"
brief: "Extracts a clean soft-alpha subject cutout from a supplied image."
image, matte, cutout
}