Class

AnimateChannel

:

duration

: number

loops

: number

direction

: TimeDirection

easing

: EaseFunc

interpolation

: Interpolation

isFinished

: boolean

timing

: number[] | undefined

easings

: EaseFunc[] | undefined

relative

: boolean

update

(obj: GameObj<any>, t: number) => boolean

getLowerKeyIndexAndRelativeTime

(t: number, count: number, timing?: number[]) => [number, number, boolean]

Returns the first key index for the given time, as well as the relative time towards the second key.

param t- The time in seconds.

param count- The optional timestamps in percent.

returns The first key index for the given time, as well as the relative time towards the second key.

setValue

(obj: GameObj<any>, name: string, value: T) => void

serialize

() => AnimationChannel
kaplay logo

Components

Miscalenous