Package-level declarations

Types

Link copied to clipboard
data class CurrentStripColor(val color: List<Int>) : SendableData

Packages the current strip state into a format that can be sent to a client

Link copied to clipboard
expect class LEDStripColorLogger(stripColorManager: LEDStripColorManager)

Logs the strip state from each render to a file

actual class LEDStripColorLogger(val stripColorManager: LEDStripColorManager)

Logs the strip state from each render to a file

Link copied to clipboard
class LEDStripColorManager(val stripManager: LEDStrip)

Tracks the color of pixels in the strip so they can be used, rendered and/or logged

Link copied to clipboard
data class PixelColor(val pixelNumber: Int)

Tracks a single pixel's colors. Each pixel has 4 colors, actualColor, fadeColor, prolongedColor and temporaryColor. A pixel's color will be set to temporaryColor if temporaryColor is not -1, otherwise to fadeColor if fadeColor is not -1, otherwise to prolongedColor.

Link copied to clipboard

Specifies which type of color to get/set

Properties

Link copied to clipboard

A list of the actual colors for the strip

A list of the actual colors for the section

Link copied to clipboard

A list of the fade colors for the strip

A list of the fade colors for the section

Link copied to clipboard

A list of the prolonged colors for the strip

A list of the prolonged colors for the section

Link copied to clipboard

A list of the temporary colors for the strip

A list of the temporary colors for the section

Functions

Link copied to clipboard

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

Clear the section (set all pixels to 0)

Clear the strip (set all pixels to 0)

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

Set a pixel's temporary color and revert (reset its temporary color) after a delay

Link copied to clipboard

Set the strip's/section's fade color

Set the section's fade color

Set the strip's fade color

Link copied to clipboard

Set the strip's/section's prolonged color

Set the section's prolonged color

Set the strip's prolonged color

Link copied to clipboard

Set the strip's/section's temporary color

Set the section's temporary color

Set the strip's temporary color