dacha
    Preparing search index...

    Interface SpriteConfig

    Options for Sprite.

    Index
    blending?: "normal" | "addition" | "subtract" | "multiply"

    Blending mode for rendering

    color?: string

    Color tint applied to the sprite

    disabled?: boolean

    Whether the sprite is disabled and should not render

    fit?: "repeat" | "stretch"

    How the texture should fit within the sprite bounds

    flipX?: boolean

    Whether to flip the sprite horizontally

    flipY?: boolean

    Whether to flip the sprite vertically

    height?: number

    Height of the sprite in pixels

    opacity?: number

    Opacity from 0 (transparent) to 1 (opaque)

    slice?: number

    Number of frames in the sprite sheet

    sortingLayer?: string

    Sorting layer name for rendering order

    sortOffset?: Point

    Center point for sorting calculations

    src?: string

    Path to the texture image file

    textureOffset?: Point

    Texture sampling offset in pixels. Only applies to fit: 'repeat'. With flipX/flipY the tile is mirrored, so a positive offset scrolls in the mirrored direction.

    width?: number

    Width of the sprite in pixels