Skip to content

1681-engine / index / parseAtlas

Function: parseAtlas() ​

ts
function parseAtlas(json, where?): PackedAtlasPage;

Defined in: src/assets/textureAtlas.ts:79

Parses one atlas JSON file; throws naming where (its URL) when it is not one.

Parameters ​

ParameterTypeDefault value
jsonunknownundefined
wherestring'atlas'

Returns ​

PackedAtlasPage

Released under the MIT License.