Package-level declarations

Types

Link copied to clipboard

Represents an instance that can run animations on a specific section of a strip

Link copied to clipboard
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

Link copied to clipboard
data class EndAnimation(val id: String = "") : SendableData

Communicates that an animation should end or is ending

Link copied to clipboard

Manages animations running on the entire strip and is the parent manager to all animations

Link copied to clipboard
data class PixelModificationLists(setLists: List<List<Int>>, revertLists: List<List<Int>>)

A list of PixelsToModify for an animation. A separate class was created so it can be saved in a map without worrying about type erasure and so the PixelsToModify instances can be created easily.

Link copied to clipboard
data class PixelsToModify(val allSetPixels: List<Int>, val allRevertPixels: List<Int>)

Contains lists of pixels so the animation knows what pixels to set and revert during this iteration.

Link copied to clipboard
data class RunningAnimation(val params: RunningAnimationParams, val animationScope: <Error class: unknown class>, val sectionManager: SectionManager, val parentManager: AnimationManager, val topLevelAnimation: Boolean = false, var paused: Boolean = false) : AnimationManager

Tracks a currently running animation

Link copied to clipboard

Describes the properties of a currently running animation

Link copied to clipboard
data class SubAnimationToRunParams(val animationParams: AnimationToRunParams, val scope: <Error class: unknown class>, val section: SectionManager, val runCount: Int = 1)

Properties

Link copied to clipboard

The number of LEDs in the section that corresponds with this animation manager

Link copied to clipboard

A list of all valid indices for the section that corresponds with this animation manager

Functions

Link copied to clipboard

Add a new animation to the list of supported animations

Link copied to clipboard

Add a new animation group to the list of supported animations

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
Link copied to clipboard
Link copied to clipboard

Set the id parameter.

Link copied to clipboard
Link copied to clipboard
inline fun iterateOver(indices: List<Int>, operation: (Int) -> Unit)

Iterate over indices given in a list

inline fun iterateOver(indices: IntProgression, operation: (Int) -> Unit)

Iterate over a range of indices

Link copied to clipboard
inline fun AnimationManager.iterateOverPixels(operation: (Int) -> Unit)

Iterate over each pixel, performing operation on each index

Link copied to clipboard

Iterate over each pixel in reverse, performing operation on each index

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun randomInt(): Int
Link copied to clipboard

Remove whitespace from a String

Link copied to clipboard
Link copied to clipboard

Run a new subanimation in a child coroutine

Link copied to clipboard

Run many new subanimations in child coroutines and wait for all to complete before returning

Link copied to clipboard

Run a new animation in a child coroutine and wait for it to complete before returning

Link copied to clipboard

Set the section parameter.

Link copied to clipboard
Link copied to clipboard

Start running a new animation

Link copied to clipboard