Skip to main content

EaseBy

@deprecated

use moveBy({offset: Vector, duration: number, easing: EasingFunction})

Implements

Index

Constructors

constructor

  • new EaseBy(entity: Entity<any>, offsetX: number, offsetY: number, duration: number, easingFcn: (currentTime: number, startValue: number, endValue: number, duration: number) => number): EaseBy
  • Parameters

    • entity: Entity<any>
    • offsetX: number
    • offsetY: number
    • duration: number
    • easingFcn: (currentTime: number, startValue: number, endValue: number, duration: number) => number

      Returns EaseBy

    Properties

    publiceasingFcn

    easingFcn: (currentTime: number, startValue: number, endValue: number, duration: number) => number

    Type declaration

      • (currentTime: number, startValue: number, endValue: number, duration: number): number
      • Parameters

        • currentTime: number
        • startValue: number
        • endValue: number
        • duration: number

        Returns number

    id

    id: number = ...

    Methods

    publicisComplete

    • isComplete(): boolean
    • Returns boolean

    publicreset

    • reset(): void
    • Returns void

    publicstop

    • stop(): void
    • Returns void

    publicupdate

    • update(elapsed: number): void
    • Parameters

      • elapsed: number

      Returns void