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)')); Copy
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)'));
Example