Skip to main content

SpriteSheetSpacingDimensions

Specify sprite sheet spacing options, useful if your sprites are not tightly packed and have space between them.

Index

Properties

optionalmargin

margin?: { x?: number; y?: number }

The margin between sprites. Default is (0, 0)


Type declaration

  • optionalx?: number
  • optionaly?: number

optionaloriginOffset

originOffset?: { x?: number; y?: number }

The starting point to offset and start slicing the sprite sheet from the top left of the image. Default is (0, 0)


Type declaration

  • optionalx?: number
  • optionaly?: number