Add animated GIF file export to Graphene CLI (#3846)

* Add gif file export via graphene cli

* Add check for negative fps numbers
This commit is contained in:
Dennis Kobert
2026-03-08 11:33:40 +01:00
committed by GitHub
parent 5d22292072
commit 3d1491ce92
4 changed files with 144 additions and 9 deletions

View File

@@ -10,9 +10,7 @@ use interpreted_executor::util::wrap_network_in_scope;
pub fn setup_network(name: &str) -> (DynamicExecutor, ProtoNetwork) {
let mut network = load_from_name(name);
let editor_api = std::sync::Arc::new(EditorApi::default());
println!("generating substitutions");
let substitutions = preprocessor::generate_node_substitutions();
println!("expanding network");
preprocessor::expand_network(&mut network, &substitutions);
let network = wrap_network_in_scope(network, editor_api);
let proto_network = compile(network);