Skip to main content

Crate animato_core

Crate animato_core 

Source
Expand description

§animato-core

Core traits and easing system for the Animato animation library.

This crate is the foundation every other Animato crate builds on. It is fully no_std-compatible with zero external dependencies (unless the optional serde feature is enabled).

§Quick Start

use animato_core::{Interpolate, Easing};

// Easing a value from 0.0 to 1.0 at the midpoint
let t = 0.5_f32;
let eased = Easing::EaseOutCubic.apply(t);
assert!(eased > t); // EaseOut front-loads motion

§Feature Flags

FeatureEffect
stdEnables std-dependent extensions (none in this crate today — reserved for future use)
serdeDerives Serialize/Deserialize on Easing

§no_std Usage

[dependencies]
animato-core = { version = "0.6", default-features = false }

All items in this crate are available in no_std environments.

Re-exports§

pub use easing::Easing;
pub use traits::Animatable;
pub use traits::Interpolate;
pub use traits::Playable;
pub use traits::Update;

Modules§

easing
All easing functions for the Animato animation library.
traits
Core traits for the Animato animation system.