speed up the rain

This commit is contained in:
Felix Pankratz 2024-12-27 13:35:44 +01:00
parent a0f579adf0
commit 34bf5e1c54
2 changed files with 3 additions and 3 deletions

View File

@ -14,7 +14,7 @@
MatrixPanel_I2S_DMA *matrix = nullptr;
Mode mode = HighVis;
DisplayStyle style = Supercomputer;
DisplayStyle style = Rain;
void setup(){
pinMode(ONBOARD_LED, OUTPUT);

View File

@ -68,9 +68,9 @@ void draw_rain(MatrixPanel_I2S_DMA *matrix, Mode mode) {
raindrops.push_back({
false,
raindrops[r].x,
0 - random(8),
0 - random(4),
random(20, 28),
random(0, 76),
random(0, 55),
millis()
});
raindrops.erase(raindrops.begin() + r);