@ujjwalvivek/tinyts
    Preparing search index...

    Interface SpriteOptions

    Options for drawing a sprite (source rect, rotation, flip, tint).

    interface SpriteOptions {
        angle?: number;
        color?: string | Color;
        flipX?: boolean;
        flipY?: boolean;
        sourceHeight?: number;
        sourceWidth?: number;
        sourceX?: number;
        sourceY?: number;
    }
    Index

    Properties

    angle?: number

    Rotation angle in radians.

    color?: string | Color

    Tint color applied to the sprite.

    flipX?: boolean

    Flip the sprite horizontally.

    flipY?: boolean

    Flip the sprite vertically.

    sourceHeight?: number

    Source rectangle height in the image.

    sourceWidth?: number

    Source rectangle width in the image.

    sourceX?: number

    Source rectangle X offset in the image.

    sourceY?: number

    Source rectangle Y offset in the image.