ASCIIGround - v1.1.2
    Preparing search index...

    Interface PatternContext

    Context for pattern generation containing timing and interaction data.

    This interface provides all the information a pattern needs to generate the next frame of animation, including timing, mouse interaction, and rendering boundaries.

    interface PatternContext {
        time: number;
        deltaTime: number;
        animationTime: number;
        mouseX?: number;
        mouseY?: number;
        clicked?: boolean;
        isAnimating: boolean;
        animationSpeed: number;
        region: RenderRegion;
    }
    Index

    Properties

    time: number

    Total elapsed time since animation start (in seconds)

    deltaTime: number

    Time elapsed since last frame (in seconds)

    animationTime: number

    Animation-specific time (affected by speed multipliers)

    mouseX?: number

    Current mouse X position relative to canvas (if available)

    mouseY?: number

    Current mouse Y position relative to canvas (if available)

    clicked?: boolean

    Whether mouse was clicked this frame

    isAnimating: boolean

    Whether animation is currently running

    animationSpeed: number

    Animation speed multiplier

    region: RenderRegion

    Current rendering region information