LEDStripColorManager

class LEDStripColorManager(val stripManager: LEDStrip)

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

Constructors

Link copied to clipboard
constructor(stripManager: LEDStrip)

Properties

Link copied to clipboard

A list of the actual colors for the strip

Link copied to clipboard

The list containing all the pixel color data

Link copied to clipboard

A list of the fade colors for the strip

Link copied to clipboard

A list of the prolonged colors for the strip

Link copied to clipboard

A list of the temporary colors for the strip

Link copied to clipboard

Functions

Link copied to clipboard
fun getPixelColor(pixel: Int, colorType: PixelColorType): Int

Get a pixel's color

Link copied to clipboard
fun revertPixel(pixel: Int)

Revert a pixel (reset its temporary color)

Link copied to clipboard
fun setPixelColor(pixel: Int, color: PreparedColorContainer, colorType: PixelColorType)
fun setPixelColor(pixel: Int, color: Int, colorType: PixelColorType)

Set a pixel's color