First pixel of MatrixEffect is enforced to be white.
This commit is contained in:
@ -26,7 +26,11 @@ void MatrixEffectColumn::advance() {
|
||||
|
||||
void MatrixEffectColumn::draw() {
|
||||
for(int i=0; i<length; i++) {
|
||||
setPixel(*window, x, y-i, ColorFromPalette((CRGBPalette16)palette_matrix, 255 * (length - i) / length));
|
||||
if (i==0) {
|
||||
setPixel(*window, x, y-i, CRGB(255, 255, 255));
|
||||
} else {
|
||||
setPixel(*window, x, y-i, ColorFromPalette((CRGBPalette16)palette_matrix, 255 * (length - i) / length));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user