texture_atlas_transformer 1.0.1
texture_atlas_transformer: ^1.0.1 copied to clipboard
A Pub transformer to build Texture Atlas JSON files.
texture_atlas_transformer #
A transformer to build JSON Atlas files for inclusion in games.
Example pubspec.yaml:
transformers:
- texture_atlas_transformer:
output_dir: web/assets/textures
scale: 0.125
files:
flying:
frames:
- "web/assets/green_flapper/Transparent PNG/flying/*.png"
Options #
output_dir: Output directory to generate files into.scale: Either anumor aMap(ex.{'x': 0.5, 'y': 1.0}). This ratio is applied to every frame.resize: Same asscale; however, each frame is resized to the exact size, instead of being scaled.files: AMapofStrings to atlas definitions.extension: The output image extension. Default:png. Supportsjpg,jpeg,gif, andtga.
Atlas Definitions #
frames: AListof Strings representing files to be combined. Supports globbing.animations: AMapofStrings to animations.