← back to roto on ba3a.dev

AseLayer

data class AseLayer(val name: String, val opacity: Int = Argb.OPAQUE_ALPHA, val visible: Boolean = true, val editable: Boolean = true)

One layer. opacity is 0..255. Layer opacity is a later Aseprite addition that older readers may ignore; AseCel.opacity is understood everywhere, so prefer it for anything that must look the same in every editor.

Constructors

Link copied to clipboard
constructor(name: String, opacity: Int = Argb.OPAQUE_ALPHA, visible: Boolean = true, editable: Boolean = true)

Properties

Link copied to clipboard

whether the editor lets the artist paint on the layer

Link copied to clipboard

the layer name as shown in the editor

Link copied to clipboard

layer opacity, 0..255

Link copied to clipboard

whether the layer is shown