Pixel Color
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.
Properties
The color seen on the strip
The index of the pixel this
The color that should be shown if the temporary and fade colors are not set, and the color that will be faded to
A color to show regardless of what the other colors are, essentially overriding everything
Functions
Get the pixel's color
Resets temporaryColor to -1
, effectively reverting the pixel to whatever state it would be in without the temporaryColor override
Sends the color for a pixel to the strip. 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.
Set the pixel's color