speed up the rain
This commit is contained in:
parent
a0f579adf0
commit
34bf5e1c54
@ -14,7 +14,7 @@
|
||||
MatrixPanel_I2S_DMA *matrix = nullptr;
|
||||
|
||||
Mode mode = HighVis;
|
||||
DisplayStyle style = Supercomputer;
|
||||
DisplayStyle style = Rain;
|
||||
|
||||
void setup(){
|
||||
pinMode(ONBOARD_LED, OUTPUT);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user