ImageAnimation
open class ImageAnimation(val frames: List<ImageFrame>, val direction: ImageAnimation.Direction, val name: String, val layers: List<ImageLayer> = frames.flatMap { it.layerData }.map { it.layer }.distinct().sortedBy { it.index })
Constructors
Link copied to clipboard
constructor(frames: List<ImageFrame>, direction: ImageAnimation.Direction, name: String, layers: List<ImageLayer> = frames.flatMap { it.layerData }.map { it.layer }.distinct().sortedBy { it.index })