slice

fun slice(sliceWidth: Int, sliceHeight: Int, border: Int = 0): Array<Array<TextureSlice>>

Slice this TextureSlice into smaller slices.

Parameters

sliceWidth

the width of the slice

sliceHeight

the height of the slice

border

the thickness of the border the slice has. This will usually be 0 but could change if Texture.sliceWithBorder was used and needed to keep the original slice sizes.