diff --git a/src/tasks/ui.rs b/src/tasks/ui.rs index 3d5a7e7..86162e8 100644 --- a/src/tasks/ui.rs +++ b/src/tasks/ui.rs @@ -8,9 +8,9 @@ use log::*; use crate::{animation::{AnimatedSurface, Animation}, ego::engine::MotionState, events::{Personality, Prediction, Scene, SensorSource, SensorState}, graphics::{display::{SegmentSpace, Uniforms}, shaders::*}}; const NOTIFY_FADE_IN: Animation = Animation::new().duration(Duration::from_millis(30)) .from(Fract8::MIN).to(Fract8::MAX); -const NOTIFY_PULSE_OUT: Animation = Animation::new().duration(Duration::from_millis(100)).from(Fract8::MAX).to(Fract8::from_raw(60)); -const NOTIFY_PULSE_IN: Animation = Animation::new().duration(Duration::from_millis(100)).from(Fract8::MIN).to(Fract8::MAX); -const NOTIFY_FADE_OUT: Animation = Animation::new().duration(Duration::from_secs(2)) .from(Fract8::MAX).to(Fract8::MIN); +const NOTIFY_PULSE_OUT: Animation = Animation::new().duration(Duration::from_millis(10)).from(Fract8::MAX).to(Fract8::from_raw(60)); +const NOTIFY_PULSE_IN: Animation = Animation::new().duration(Duration::from_millis(10)).from(Fract8::MIN).to(Fract8::MAX); +const NOTIFY_FADE_OUT: Animation = Animation::new().duration(Duration::from_millis(750)) .from(Fract8::MAX).to(Fract8::MIN); const FG_FADE_OUT: Animation = Animation::new().duration(Duration::from_millis(300)).to(Fract8::MIN); const BG_FADE_IN: Animation = Animation::new().duration(Duration::from_millis(300)).to(Fract8::from_raw(128));