Aseprite file format reader/writer
Static methods
staticcreate(width:Int, height:Int, colorDepth:ColorDepth = BPP32, ?initialPalette:Array<Int>):Ase
Create a new Ase instance
Parameters:
width | File width |
---|---|
height | File height |
colorDepth | (optional, default BPP32) color depth. BPP32, BPP16, BPP8 or INDEXED |
initialPalette | (optional) Array of RGBA values for initial palette |
Variables
Methods
addFrame(copyPrev:Bool = false, duration:Int = 100):Frame
Add a frame to the sprite
Parameters:
copyPrev | if true will copy all the cel from the previous frame |
---|---|
duration | Duration of the frame in milliseconds |
initPalette(colors:Array<Int>):Void
Initialize the pallet
Parameters:
colors | Array of RGBA color values for the new pallet |
---|