← back to roto on ba3a.dev

AseCel

data class AseCel(val layerIndex: Int, val image: IndexedRaster, val x: Int = 0, val y: Int = 0, val opacity: Int = Argb.OPAQUE_ALPHA)

The image one layer shows in one frame, placed with its top-left corner at (x, y) on the canvas. A cel may extend past the canvas edge. opacity is 0..255.

Constructors

Link copied to clipboard
constructor(layerIndex: Int, image: IndexedRaster, x: Int = 0, y: Int = 0, opacity: Int = Argb.OPAQUE_ALPHA)

Properties

Link copied to clipboard

the cel pixels as palette indices

Link copied to clipboard

index into AseSprite.layers of the layer this cel belongs to

Link copied to clipboard

cel opacity, 0..255

Link copied to clipboard
val x: Int

canvas column of the cel's left edge

Link copied to clipboard
val y: Int

canvas row of the cel's top edge