pixi.js
    Preparing search index...

    Interface DefaultBatchElementsAdvanced

    Represents the common elements for default batch rendering. This interface defines the properties that are used by the DefaultBatcher to render elements efficiently in a batch.

    interface DefaultBatchElements {
        color: number;
        roundPixels: 0 | 1;
        transform: Matrix;
    }

    Hierarchy (View Summary)

    Index

    Properties

    color: number

    The color of the element that will be multiplied with the texture color. This is typically represented as a 32-bit integer in RGBA format.

    roundPixels: 0 | 1

    Determines whether the element should be rounded to the nearest pixel.

    • 0: No rounding (default)
    • 1: Round to nearest pixel This can help with visual consistency, especially for pixel art styles.
    transform: Matrix

    The transform matrix of the element. This matrix represents the position, scale, rotation, and skew of the element.