Skip to content

EffectCraft: An open-source motion graphics and compositing tool written by scratch in pure Rust

Re-export color/geom from engine; kurbo_path helper

Brandon Thomas58b137991ba4
diff --git a/crates/engine/src/lib.rs b/crates/engine/src/lib.rs
index a3485ee82..7f851c023 100644
--- a/crates/engine/src/lib.rs
+++ b/crates/engine/src/lib.rs
@@ -23,6 +23,8 @@ use serde_json::Value;
pub use commands::{CommandSpec, command_specs, find as find_command};
pub use effectcraft_effects as effects;
+pub use effectcraft_color as color;
+pub use effectcraft_geom as geom;
pub use effectcraft_keyframe as keyframe;
pub use effectcraft_project as project;
pub use effectcraft_render as render;
diff --git a/crates/render/src/lib.rs b/crates/render/src/lib.rs
index 944c858ee..0e2380c90 100644
--- a/crates/render/src/lib.rs
+++ b/crates/render/src/lib.rs
@@ -351,3 +351,8 @@ pub fn content_bounds(ctx: &EvalCtx, layer: &effectcraft_project::Layer) -> Opti
}
}
}
+
+/// A mask/shape path as a kurbo path (for drawing overlays).
+pub fn kurbo_path(sp: &effectcraft_keyframe::ShapePath) -> kurbo::BezPath {
+ effectcraft_path::to_kurbo(sp)
+}