@eversource/pixi-texture-splitter

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

Stats

stars 🌟issues ⚠️updated 🛠created 🐣size 🏋️‍♀️
@eversource/pixi-texture-splitter
Minified + gzip package size for @eversource/pixi-texture-splitter in KB

Readme

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

If you find any bugs or have a feature request, please open an issue on github!

The npm package download data comes from npm's download counts api and package details come from npms.io.