AnimationToRunParams

data class AnimationToRunParams(var animation: String = "", var colors: MutableList<ColorContainerInterface> = mutableListOf(), var id: String = "", var section: String = "", var runCount: Int = 0, var intParams: MutableMap<String, Int> = mutableMapOf(), var doubleParams: MutableMap<String, Double> = mutableMapOf(), var stringParams: MutableMap<String, String> = mutableMapOf(), var locationParams: MutableMap<String, Location> = mutableMapOf(), var distanceParams: MutableMap<String, Distance> = mutableMapOf(), var rotationParams: MutableMap<String, Rotation> = mutableMapOf(), var equationParams: MutableMap<String, Equation> = mutableMapOf()) : SendableData

Describes the properties of an animation to run

Constructors

Link copied to clipboard
constructor(animation: String = "", colors: MutableList<ColorContainerInterface> = mutableListOf(), id: String = "", section: String = "", runCount: Int = 0, intParams: MutableMap<String, Int> = mutableMapOf(), doubleParams: MutableMap<String, Double> = mutableMapOf(), stringParams: MutableMap<String, String> = mutableMapOf(), locationParams: MutableMap<String, Location> = mutableMapOf(), distanceParams: MutableMap<String, Distance> = mutableMapOf(), rotationParams: MutableMap<String, Rotation> = mutableMapOf(), equationParams: MutableMap<String, Equation> = mutableMapOf())

Properties

Link copied to clipboard

Name of the animation

Link copied to clipboard
Link copied to clipboard

A map of Distance parameters for the animation

Link copied to clipboard

A map of double parameters for the animation

Link copied to clipboard

A map of Equation parameters for the animation

Link copied to clipboard
var id: String

ID for the animation. Used by server and clients to identify a specific animation.

Link copied to clipboard

A map of integer parameters for the animation

Link copied to clipboard

A map of Location parameters for the animation

Link copied to clipboard

A map of Rotation parameters for the animation

Link copied to clipboard

The number of times the animation should be run. -1 means until stopped.

Link copied to clipboard

The id of the section of the strip that will be running the whole animation (not necessarily the section running this animation, such as if this is a subanimation). This is the section that ColorContainer blend preparation will be based upon. An empty string means the whole strip.

Link copied to clipboard

A map of string parameters for the animation

Functions

Link copied to clipboard

Sets the animation parameter.

Link copied to clipboard

Set a color using a ColorContainer, hex String, or Int or Long in range(0..0xFFFFFF), along with the index of the color

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Set the id parameter.

Link copied to clipboard
Link copied to clipboard
open fun json(): ByteArray
Link copied to clipboard
open fun jsonString(): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun prepare(sectionRunningAnimation: Section, sectionRunningFullAnimation: Section = sectionRunningAnimation): RunningAnimationParams

Prepare the animation parameters for running the animation. Prepares colors, replaces values with defaults when necessary.

Link copied to clipboard
Link copied to clipboard

Set the section parameter.

Link copied to clipboard