Hello!
I'm trying to make a rain effect that's is at least midly efficient. In the below example, when an element reaches its destination it is deleted, then a new element is created.
I would like to, instead, have an element reshuffle its size and color, then move to a new initial position and just fall again.
I tried rewriting the generateRainDrop function, to have it take an existing drop and just set its size , color, and position.
This worked to the extent that the boxes did reshuffle, but then they stopped spinning - they just fell down.
I tried using pause and play in between setting, and also tried using invalidate, to varying degrees of failure.
At no point could I get a box to: randomly change size, color and initial position then continue falling and spinning, without recreating the box fully.