Class AsepriteFormat.Frame

Enclosing class:
AsepriteFormat

public static final class AsepriteFormat.Frame
Describes a single rectangular region within an Aseprite sprite sheet.
  • Constructor Details

    • Frame

      public Frame(String name, int x, int y, int width, int height, int duration)
      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

      public String getName()
    • getX

      public int getX()
    • getY

      public int getY()
    • getWidth

      public int getWidth()
    • getHeight

      public int getHeight()
    • getDuration

      public int getDuration()