pub fn ease_to(
        self,
        end: T,
        ease_function: impl Into<EaseMethod>,
        easing_type: EasingType,
    ) -> EasingChainComponent<T> {
        #[cfg(feature = "ease_handle")]
        let mut rng = rand::thread_rng();

        let next = EasingComponent {
            start: None,
            end: EaseValue(end),
            ease_function: ease_function.into(),
            timer: match easing_type {
                EasingType::Once { duration } => Timer::new(duration, false),
                EasingType::Loop { duration, .. } => Timer::new(duration, false),
                EasingType::PingPong { duration, .. } => Timer::new(duration, false),
            },
            state: EasingState::Play,
            paused: false,
            easing_type,
            direction: 1,
        };

        EasingChainComponent(vec![next, self])
    }
/// Start a chain of easing, adding a new one after the first one
Start a chain of easing, adding a new one after the first one
Start a chain of easing adding a new one after the first one
pub fn ease_to(
        self,
        end: T,
        ease_function: impl Into<EaseMethod>,
        easing_type: EasingType,
    ) -> EasingChainComponent<T> {
        #[cfg(feature = "ease_handle")]
        let mut rng = rand::thread_rng();
        let next = EasingComponent {
            start: None,
            end: EaseValue(end),
            ease_function: ease_function.into(),
            timer: match easing_type {
                EasingType::Once { duration } => Timer::new(duration, false),
                EasingType::Loop { duration, .. } => Timer::new(duration, false),
                EasingType::PingPong { duration, .. } => Timer::new(duration, false),
            },
            state: EasingState::Play,
            paused: false,
            easing_type,
            direction: 1,
        };
        EasingChainComponent(vec![next, self])
    }
pub fn ease_to ( self , end : T , ease_function : impl Into < EaseMethod > , easing_type : EasingType , ) -> EasingChainComponent < T > { # [ cfg ( feature " " ) ] let mut rng = rand :: thread_rng ( ) ; let next = EasingComponent { start : None , end : EaseValue ( end ) , ease_function : ease_function . into ( ) , timer : match easing_type { EasingType :: Once { duration } => Timer :: new ( duration , false ) , EasingType :: Loop { duration , .. } => Timer :: new ( duration , false ) , EasingType :: PingPong { duration , .. } => Timer :: new ( duration , false ) , } , state : EasingState :: Play , paused : false , easing_type , direction : 1 , } ; EasingChainComponent ( vec ! [ next self ] ) }
Start a chain of easing, adding a new one after the first one
Start a chain of easing adding a new one after the first one
self
end
T
ease_function
impl Into<EaseMethod>
easing_type
EasingType