Skip to main content

SpriteSheetGridOptions

Sprite sheet options for slicing up images

Index

Properties

grid

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

image

Source image to use for each sprite

optionalspacing

Optionally specify any spacing information between sprites

Page Options