@eversource/pixi-texture-splitter
TypeScript icon, indicating that this package has built-in type declarations

1.0.2 • Public • Published

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

Dependencies (0)

    Dev Dependencies (2)

    Package Sidebar

    Install

    npm i @eversource/pixi-texture-splitter

    Weekly Downloads

    0

    Version

    1.0.2

    License

    MIT

    Unpacked Size

    6.18 kB

    Total Files

    8

    Last publish

    Collaborators

    • zoltan.mihalyi