T49: Ely moves all the time, as the films move her, which the owner asked for after 0.1.4, where she stood still but for a press: rigged from the icon's paths in layers of one color, each a mask gpui moves with a matrix of its own at every frame, she breathes, sways, blinks and glances, and each mood moves her, easing from one act to the next; shot's snap writes a child window's frames
This commit is contained in:
11 files changed
+1017
-382
No files matched your search
@@ -38,11 +38,25 @@ fn main() {
|
||||
number.expect("the window lives").expect("a window number")
|
||||
};
|
||||
let mut aim = main;
|
||||
let mut snaps = 0;
|
||||
capture::front(number(aim, cx)).expect("the window on screen");
|
||||
cx.background_executor().timer(Duration::from_secs(1)).await;
|
||||
for spec in &keys {
|
||||
match spec.as_str() {
|
||||
"wait" => cx.background_executor().timer(Duration::from_secs(1)).await,
|
||||
"snap" => {
|
||||
snaps += 1;
|
||||
let frames = capture::frames(number(aim, cx)).expect("the frames");
|
||||
for (index, (child, _)) in frames.into_iter().skip(1).enumerate() {
|
||||
let path =
|
||||
out.replace(".png", &format!(".child{index}.snap{snaps}.png"));
|
||||
capture::snapshot(child, std::path::Path::new(&path))
|
||||
.expect("a child's picture");
|
||||
log::info!(
|
||||
"shot: snap {snaps}, child window {child}, wrote {path}"
|
||||
);
|
||||
}
|
||||
}
|
||||
"to:main" => {
|
||||
aim = main;
|
||||
capture::front(number(aim, cx)).expect("the window on screen");
|
||||
|
||||
Reference in new issue
Block a user