Interface Layer

A sprite layer or layer group. Layer information only makes sense when sprite sheet image is splitted by layer because otherwise the layers are already flattened.

interface Layer {
    blendMode?: BlendMode;
    color?: string;
    data?: string;
    group?: string;
    name: string;
    opacity?: number;
}

Properties

blendMode?: BlendMode

Blend mode of the layer. Not present when layer is actually a layer group.

color?: string

Optional color with which the layer is displayed in Aseprite. Only present when color is not fully transparent.

data?: string

Optional custom data. Only present when string is not empty.

group?: string

Optional parent group. Not present when on root level.

name: string

The layer name.

opacity?: number

Opacity (0-255) of the layer. Not present when layer is actually a layer group.

Generated using TypeDoc