Package-level declarations

Types

Link copied to clipboard
abstract class Animation

Represents an animation that can be run

Link copied to clipboard
data class AnimationParameter<T>(val name: String, val description: String, val default: T?)
Link copied to clipboard
class DefinedAnimation(val info: Animation.AnimationInfo, val animation: suspend (AnimationManager, RunningAnimationParams, <Error class: unknown class>) -> Unit) : Animation

An animation that is defined in the library and compiled into the jar

Link copied to clipboard
Link copied to clipboard
data class SortablePixel(val finalLocation: Int, val currentLocation: Int, val color: Int)

Tracks the final location, current location, and color of a 'pixel' being sorted

Functions

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

Convert a list of SortablePixels to a PreparedColorContainer that can be used to set the strip color before the sorting begins

Link copied to clipboard
Link copied to clipboard

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