Skip to content

Documentation / @debuffjp/juice / Tweens

Class: Tweens ​

Defined in: tween.ts:39

Tweens numeric properties of any object. Drive with update(dt) from the game loop.

Constructors ​

Constructor ​

new Tweens(): Tweens

Returns ​

Tweens

Accessors ​

count ​

Get Signature ​

get count(): number

Defined in: tween.ts:80

Returns ​

number

Methods ​

kill() ​

kill(target): void

Defined in: tween.ts:76

Cancel all tweens on a target.

Parameters ​

target ​

object

Returns ​

void


to() ​

to<T>(target, props, options): Tween

Defined in: tween.ts:42

Type Parameters ​

T ​

T extends object

Parameters ​

target ​

T

props ​

Partial<Pick<T, NumericKeys<T>>>

options ​

TweenOptions

Returns ​

Tween


update() ​

update(dt): void

Defined in: tween.ts:84

Parameters ​

dt ​

number

Returns ​

void