AsepriteFrameLayer
Represents a single layer's data within an Aseprite frame.
Aseprite files can contain multiple layers that are composited together to create the final frame image. This structure holds the pixel data for one layer within a specific frame.
Layers can have different blend modes, opacity levels, and visibility states that affect how they are combined with other layers.
Instance Members
The layer definition containing properties like name, blend mode, opacity, and visibility settings.
The cel (cell) data for this layer in this frame. Contains position, opacity, and link information. May be null if this layer has no content in this frame.
The pixel data for this layer in RGBA format. Each pixel uses 4 bytes (R, G, B, A) with values 0-255. May be null if this layer has no visible content in this frame or if the cel is linked to another frame.
new(layer: ase.chunks.LayerChunk, ?celChunk: Null<ase.chunks.CelChunk>, ?pixels: Null<UInt8Array>): Void
Name | Type | Default | Description |
---|---|---|---|
layer |
ase.chunks.LayerChunk | * The layer definition containing properties like name, blend mode, opacity, and visibility settings. | |
celChunk |
Null<ase.chunks.CelChunk> | (optional) | * The cel (cell) data for this layer in this frame. Contains position, opacity, and link information. May be null if this layer has no content in this frame. |
pixels |
Null<UInt8Array> | (optional) | * The pixel data for this layer in RGBA format. Each pixel uses 4 bytes (R, G, B, A) with values 0-255. May be null if this layer has no visible content in this frame or if the cel is linked to another frame. |
Metadata
Name | Parameters |
---|---|
:structInit |
- |