First pixel of MatrixEffect is enforced to be white.

This commit is contained in:
2019-06-04 06:51:36 +02:00
parent ac2de19d7a
commit 788b1f4119
2 changed files with 6 additions and 2 deletions

View File

@ -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));
}
}
}