basic tween structure
This commit is contained in:
parent
1afa91cdc3
commit
59be1ceddc
2 changed files with 22 additions and 0 deletions
15
src/lib.rs
Normal file
15
src/lib.rs
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
pub struct Tween<T> {
|
||||
tweeners: Vec<Tweener<T>>,
|
||||
}
|
||||
|
||||
pub enum Tweener<T> {
|
||||
TweenFunction {
|
||||
function: fn(t: f32, min: T, max: T) -> T,
|
||||
},
|
||||
TweenInterval {
|
||||
interval: f32,
|
||||
},
|
||||
TweenCallback {
|
||||
callback: fn(),
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue