You have never defined the value of passedTime, so that variable is null (unless this was intended), and the program can't compare null to a number. Null could be anything!
You also forgot to add .read(), which reads a a new frame every time.
Putting the background in draw would just stop the rain from leaving permanent streaks on the sketch.
I haven't tinkered with the code too much, but for me, after having settled all the minor issues, I started to get major problems. Fix those, then move on.
- MenteCode.
You also forgot to add .read(), which reads a a new frame every time.
Putting the background in draw would just stop the rain from leaving permanent streaks on the sketch.
I haven't tinkered with the code too much, but for me, after having settled all the minor issues, I started to get major problems. Fix those, then move on.
- MenteCode.