@newkrok/three-particles - v2.1.0
    Preparing search index...

    Type Alias TextureSheetAnimation

    Defines the texture sheet animation settings for particles. Allows configuring the animation frames, timing mode, frames per second, and the starting frame.

    tiles: new THREE.Vector2(1.0, 1.0)
    timeMode: TimeMode.LIFETIME
    fps: 30.0
    startFrame: 0
    // Basic configuration with default values
    textureSheetAnimation: {
    tiles: new THREE.Vector2(1.0, 1.0),
    timeMode: TimeMode.LIFETIME,
    fps: 30.0,
    startFrame: 0
    };

    // Custom configuration
    textureSheetAnimation: {
    tiles: new THREE.Vector2(4, 4), // 4x4 grid of animation tiles
    timeMode: TimeMode.SPEED,
    fps: 60.0,
    startFrame: { min: 0, max: 15 } // Random start frame between 0 and 15
    };
    type TextureSheetAnimation = {
        fps?: number;
        startFrame?: Constant | RandomBetweenTwoConstants;
        tiles?: THREE.Vector2;
        timeMode?: TimeMode;
    }
    Index

    Properties

    fps?: number
    tiles?: THREE.Vector2
    timeMode?: TimeMode