1.0.2 • Published 6 years ago

@eversource/pixi-texture-splitter v1.0.2

Weekly downloads
-
License
MIT
Repository
-
Last release
6 years ago

pixi-texture-splitter

Splits big textures to chunks and allows creating sub-textures using coordinates of the original texture.

var split = new PIXI.extras.SplitTexture(baseTexture, 256, 256); // creates 256*256 px chunks

var myTexture = split.subTexture(256, 384, 128, 128); // same as new PIXI.Texture(baseTexture, new PIXI.Rectangle(256, 384, 128, 128)) but uses the appropriate chunk