mwg API
    Preparing search index...

    Function croppedTexture

    • Parameters

      Returns Texture

      import { Texture } from 'pixi.js';
      import { croppedTexture, parseImagePath } from '@datamoc/mw_games/two-d/render';
      const cropped = croppedTexture(Texture.EMPTY, parseImagePath('atlas.png~CROP(0,0,16,16)'));