MCPcopy Create free account
hub / github.com/esengine/esengine / shake

Method shake

packages/fairygui/src/tween/GTween.ts:127–134  ·  view source on GitHub ↗

* Create a shake tween * 创建震动补间

(
        startX: number,
        startY: number,
        amplitude: number,
        duration: number
    )

Source from the content-addressed store, hash-verified

125 * 创建震动补间
126 */
127 public static shake(
128 startX: number,
129 startY: number,
130 amplitude: number,
131 duration: number
132 ): GTweener {
133 return TweenManager.createTween()._shake(startX, startY, amplitude, duration);
134 }
135
136 /**
137 * Check if target is being tweened

Callers 1

playItemMethod · 0.80

Calls 2

_shakeMethod · 0.80
createTweenMethod · 0.80

Tested by

no test coverage detected