Class AsepriteFormat.Frame
- Enclosing class:
AsepriteFormat
public static final class AsepriteFormat.Frame
Describes a single rectangular region within an Aseprite sprite sheet.
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Frame
Creates a new frame entry.- Parameters:
name- Name of the frame, typically of the form"<animation> <index>.png".x- X position of the frame within the sprite sheet, in pixels.y- Y position of the frame within the sprite sheet, in pixels.width- Width of the frame, in pixels.height- Height of the frame, in pixels.duration- Display duration of the frame, in milliseconds.
-
-
Method Details
-
getName
-
getX
public int getX() -
getY
public int getY() -
getWidth
public int getWidth() -
getHeight
public int getHeight() -
getDuration
public int getDuration()
-