Skip to main content

Function: updateFromAlphaFunc()

updateFromAlphaFunc(mobject, func, options?): UpdateFromAlphaFunc

Defined in: src/animation/UpdateFromAlphaFunc.ts:32

Factory function to create an UpdateFromAlphaFunc animation.

Parameters

mobject

Mobject

The mobject to animate

func

(mobject, alpha) => void

Function called with (mobject, alpha) each frame

options?

AnimationOptions

Animation options (duration, rateFunc, etc.)

Returns

UpdateFromAlphaFunc

A new UpdateFromAlphaFunc animation