mickeyf.docs
    Preparing search index...
    interface FractalAnimation<C> {
        dispose(): void;
        init(app: Application): void;
        scheduleDisposal(seconds: number): void;
        startDisposal(): void;
        step(
            deltaSeconds: number,
            nowMs: number,
            audioState: AudioState,
            musicFeatures: MusicFeaturesFrame,
        ): void;
        updateConfig(patch: Partial<C>): void;
    }

    Type Parameters

    • C
    Index

    Methods

    • Arms an animated disposal transition after a delay.

      The delay is relative to the call time and is specified in seconds.

      Project convention: this is safe to call multiple times; the latest call re-arms the countdown (and typically resets any in-progress disposal transition).

      Note: this only schedules the transition. Actual resource cleanup happens via dispose as part of the animation/host disposal flow.

      Parameters

      • seconds: number

        Time from now until disposal starts, in seconds.

      Returns void