1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
pub struct AnimationParams { pub name: String, pub duration: f32, pub iteration_count: f32, } impl AnimationParams { pub fn new() -> Self { Self { name: "".to_string(), duration: 0.0, iteration_count: 1.0, } } }