🎨 3 levels :3

This commit is contained in:
Felix Pankratz 2024-12-17 15:52:20 +01:00
parent 5fa2940592
commit 35b1037224
2 changed files with 6 additions and 5 deletions

View File

@ -10,10 +10,11 @@ Displays my name.
Upper button changes visibility level, lower button changes display style.
|Style|Description|Visibility 0|Visibility 1|Visibility 1|
|Style|Description|Visibility 0|Visibility 1|Visibility 2|
|--|--|--|--|--|
|Rain|Matrix-style digital rain|No highlights|Overlay is highlighted|Highlights do not fade|
|38C3|38C3 themed font and background|Show only "38C3"|Show only "Panki"|Rotating text with name and DECT extension|
|Supercomputer|Inspired by a [BigClive video](https://www.youtube.com/watch?v=7f8jgvvJe-Q)|Red only|Rainbow, inverted name|Rainbow name, no background|
### gifplayer

View File

@ -41,8 +41,10 @@ void draw_supercomputer(MatrixPanel_I2S_DMA *matrix, Mode mode) {
// rainbow
float progress = (255.0 / PANEL_WIDTH) * x;
uint8_t hue = ((int)round(progress) + rainbow_offset);
if (overlay[i / 8] & (1 << (7 - (i % 8)))){
if (overlay[i / 8] & (1 << (7 - (i % 8)))) {
hue -= 128;
} else if (mode == HighVis) {
continue;
}
CHSV hsv_color(hue, 255, 255 * cell_value(cells[i]));
CRGB rgb;
@ -50,7 +52,5 @@ void draw_supercomputer(MatrixPanel_I2S_DMA *matrix, Mode mode) {
matrix->drawPixel(x, y, matrix->color565(rgb.r, rgb.g, rgb.b));
}
}
if (mode == HighVis) {
rainbow_offset++;
}
}