konfeti - v0.6.0
    Preparing search index...

    Type Alias SpriteFrames

    SpriteFrames:
        | { cols: number; count?: number; rows: number }
        | readonly FrameRect[]

    Spritesheet Frame Layout.

    • Grid: frames of equal size, read left → right, top → bottom. count limits the frames used when the last row is not full.
    • Rect list: explicit frame rectangles (e.g. from an atlas JSON), played in order.

    Type Declaration

    • { cols: number; count?: number; rows: number }
      • Readonlycols: number

        Column Count.

      • Optional Readonlycount?: number

        Used Frame Count.

        cols × rows

      • Readonlyrows: number

        Row Count.

    • readonly FrameRect[]
    frames: { cols: 8, rows: 1 }
    frames: { cols: 4, rows: 4, count: 14 }
    frames: [{ x: 0, y: 0, width: 32, height: 32 }, { x: 32, y: 0, width: 32, height: 32 }]