Sprite sheet options for slicing up images


  • SpriteSheetGridOptions



grid: {
    columns: number;
    rows: number;
    spriteHeight: number;
    spriteWidth: number;

Grid definition for the sprite sheet

Type declaration

  • columns: number

    Number of columns in the sprite sheet

  • rows: number

    Number of rows in the sprite sheet

  • spriteHeight: number

    Height of each individual sprite

  • spriteWidth: number

    Width of each individual sprite

Source image to use for each sprite

Optionally specify any spacing information between sprites