@bloopjs/toodle / textures/types / AtlasDef
Type Alias: AtlasDef
AtlasDef = {
json:URL;png?:URL; } | {json?:URL;png:URL; }
Defined in: textures/types.ts:80
A definition for a pre-baked texture atlas
Type declaration
{ json: URL; png?: URL; }
json
json:
URL
The url of the atlas json file, if empty the json is assumed to be next to the png file
png?
optionalpng:URL
The url of the atlas png file, if empty the png is assumed to be next to the json file
{ json?: URL; png: URL; }
json?
optionaljson:URL
The url of the atlas json file, if empty the json is assumed to be next to the png file
png
png:
URL
The url of the atlas png file, if empty the png is assumed to be next to the json file