AnimationManager

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

Inheritors

Properties

Link copied to clipboard
abstract val animationScope: <Error class: unknown class>

The CoroutineScope all animations managed by this instance will run in

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

Link copied to clipboard

Tracks the currently running animations managed by this instance

Link copied to clipboard

The section associated with this instance

Functions

Link copied to clipboard

Clear the strip/section (set all pixels to 0)

Link copied to clipboard
fun AnimationManager.createSection(name: String, startPixel: Int, endPixel: Int): Section
Link copied to clipboard

End a currently running animation

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
fun AnimationManager.getSubSection(startPixel: Int, endPixel: Int): Section
Link copied to clipboard
fun AnimationManager.groupGroupsOfPixelsAlongLine(line: Equation, rotation: RadiansRotation, offset: AbsoluteDistance, influenceDistance: Double, movementPerIteration: Double, groupSpacing: Double): PixelModificationLists

Group pixels into groups spaced apart by groupSpacing based on their location along the X axis and distance from a line after an offset and a rotation are performed

Link copied to clipboard
fun AnimationManager.groupPixelsAlongLine(line: Equation, rotation: RadiansRotation, offset: AbsoluteDistance, influenceDistance: Double, movementPerIteration: Double): PixelModificationLists

Group pixels based on their location along the X axis and distance from a line after an offset and a rotation are performed

Link copied to clipboard
fun AnimationManager.groupPixelsByDistance(center: Location, maximumDistance: AbsoluteDistance, movementPerIteration: Double): PixelModificationLists

Group pixels based on their distance from a central point.

Link copied to clipboard

Group pixels based on their location along the X axis after a transformation is performed.

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
suspend fun AnimationManager.mergeSort(sortablePixels: MutableList<SortablePixel>, scope: <Error class: unknown class>, startIndex: Int, endIndex: Int, interMovementDelay: Long, parallel: Boolean): <Error class: unknown class>?
Link copied to clipboard
suspend fun AnimationManager.partition(sortablePixels: MutableList<SortablePixel>, startIndex: Int, endIndex: Int, interMovementDelay: Long): Int
Link copied to clipboard
suspend fun AnimationManager.quickSort(sortablePixels: MutableList<SortablePixel>, scope: <Error class: unknown class>, startIndex: Int, endIndex: Int, interMovementDelay: Long, parallel: Boolean): <Error class: unknown class>?
Link copied to clipboard
Link copied to clipboard

Revert a pixel's color (reset its temporary color)

Link copied to clipboard

Revert multiple pixels' color (reset their temporary colors)

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 a pixel's temporary color and revert (reset its temporary color) after a delay

Link copied to clipboard

Set a pixel's fade color

Link copied to clipboard
Link copied to clipboard

Set a pixel's prolonged color

Link copied to clipboard

Set a pixel's temporary color

Link copied to clipboard

Set the strip's/section's fade color

Link copied to clipboard

Set the strip's/section's prolonged color

Link copied to clipboard

Set the strip's/section's temporary color

Link copied to clipboard
fun AnimationManager.shiftPixel(from: Int, to: Int, sortablePixels: MutableList<SortablePixel>)

Shift a pixel in the sortablePixels list from the from index to the to index, showing the movement on the strip

Link copied to clipboard
Link copied to clipboard

Start running a new animation

Link copied to clipboard

Sets the color of the pixel at index with the appropriate color in sortablePixels