Skip to main content

Crate blinc_animation

Crate blinc_animation 

Source
Expand description

Blinc Animation System

Spring physics, keyframe animations, and timeline orchestration.

§Features

  • Spring Physics: RK4-integrated springs with stiffness, damping, mass
  • Keyframe Animations: Timed sequences with easing functions
  • Multi-Property Keyframes: Animate multiple properties simultaneously
  • Timelines: Orchestrate multiple animations with offsets
  • Typed Animations: Generic animations for Vec3, Color, and custom types
  • Interruptible: Animations inherit velocity when interrupted
  • Animation Presets: Common entry/exit animations
  • AnimationContext: Platform-agnostic animation management trait

Re-exports§

pub use context::AnimationContext;
pub use context::AnimationContextExt;
pub use context::SharedAnimatedTimeline;
pub use context::SharedAnimatedValue;
pub use easing::Easing;
pub use keyframe::FillMode;
pub use keyframe::Keyframe;
pub use keyframe::KeyframeAnimation;
pub use keyframe::KeyframePoint;
pub use keyframe::KeyframeProperties;
pub use keyframe::KeyframeTrack;
pub use keyframe::KeyframeTrackBuilder;
pub use keyframe::MultiKeyframe;
pub use keyframe::MultiKeyframeAnimation;
pub use keyframe::PlayDirection;
pub use presets::AnimationPreset;
pub use scheduler::get_scheduler;
pub use scheduler::is_scheduler_initialized;
pub use scheduler::set_global_scheduler;
pub use scheduler::try_get_scheduler;
pub use scheduler::AnimatedKeyframe;
pub use scheduler::AnimatedTimeline;
pub use scheduler::AnimatedValue;
pub use scheduler::AnimationScheduler;
pub use scheduler::ConfigureResult;
pub use scheduler::KeyframeId;
pub use scheduler::SchedulerHandle;
pub use scheduler::SpringId;
pub use scheduler::TickCallback;
pub use scheduler::TickCallbackId;
pub use scheduler::TimelineId;
pub use spring::Spring;
pub use spring::SpringConfig;
pub use timeline::StaggerBuilder;
pub use timeline::Timeline;
pub use timeline::TimelineEntryId;
pub use values::ColorAnimation;
pub use values::ColorKeyframe;
pub use values::FloatAnimation;
pub use values::FloatKeyframe;
pub use values::Interpolate;
pub use values::SphericalInterpolate;
pub use values::TypedKeyframe;
pub use values::TypedKeyframeAnimation;
pub use values::Vec3Animation;
pub use values::Vec3Keyframe;

Modules§

context
Animation context trait for platform-agnostic animation management
easing
Easing functions for animations
keyframe
Keyframe animations
morph
SVG path morphing — interpolate between two SVG path data strings.
presets
Animation presets for common entry/exit animations
scheduler
Animation scheduler
spring
Spring physics animation
timeline
Timeline orchestration for multiple animations
values
Animatable value types