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; MatrixPanel_I2S_DMA *matrix = nullptr;
Mode mode = HighVis; Mode mode = HighVis;
DisplayStyle style = Supercomputer; DisplayStyle style = Rain;
void setup(){ void setup(){
pinMode(ONBOARD_LED, OUTPUT); pinMode(ONBOARD_LED, OUTPUT);

View File

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