Make a cropped view without mutating the shared source texture.
import { Texture } from 'pixi.js';import { croppedTexture, parseImagePath } from '@datamoc/mwg/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/mwg/two-d/render';const cropped = croppedTexture(Texture.EMPTY, parseImagePath('atlas.png~CROP(0,0,16,16)'));
Make a cropped view without mutating the shared source texture.