ase

Aseprite file format parser


Keywords
ase, aseprite, format, haxe
License
MIT
Install
haxelib install ase 1.1.1

Documentation

ASE

.ase/.aseprite file format loader written in Haxe without external dependencies.

Implemented following the official Aseprite File Format (.ase/.aseprite) Specifications

Note that this library only provides parsing of the Aseprite file format. If you need rendering you will have to implement it yourself or use some premade rendering library based on this one (in fact there's only one such library):

Getting Started

Prerequisites

  • Haxe compiler
  • Haxelib

Installation

haxelib install ase

Usage

import sys.io.File;
import ase.Ase;

var data:Bytes = File.getBytes("path/to/file.aseprite");
var ase:Ase = new Ase(data);

Now you can access the Aseprite file header:

trace(ase.header.width);
trace(ase.header.height);

and frames data:

trace(ase.frames);

Authors

License

This project is licensed under the MIT License - see the LICENSE.md file for details