interface TokenAnimationData {
    x: number;
    y: number;
    width: number;
    height: number;
    alpha: number;
    rotation: number;
    texture: {
        src: string;
        anchorX: number;
        anchorY: number;
        scaleX: number;
        scaleY: number;
        tint: typeof Color;
    };
    ring: {
        subject: {
            texture: string;
            scale: number;
        };
    };
}

Properties

x: number

The x position in pixels

y: number

The y position in pixels

width: number

The width in grid spaces

height: number

The height in grid spaces

alpha: number

The alpha value

rotation: number

The rotation in degrees

texture: {
    src: string;
    anchorX: number;
    anchorY: number;
    scaleX: number;
    scaleY: number;
    tint: typeof Color;
}

The texture data

Type declaration

  • src: string

    The texture file path

  • anchorX: number

    The texture anchor X

  • anchorY: number

    The texture anchor Y

  • scaleX: number

    The texture scale X

  • scaleY: number

    The texture scale Y

  • tint: typeof Color

    The texture tint

ring: {
    subject: {
        texture: string;
        scale: number;
    };
}

The ring data

Type declaration

  • subject: {
        texture: string;
        scale: number;
    }

    The ring subject data

    • texture: string

      The ring subject texture

    • scale: number

      The ring subject scale