I have an app and I want to change the background color at increasingly fast rates. Basically, I want the background color to change after a three second delay, then a 2.9 second delay, etc....
So, what I thought was that I would make a random integer that I use to pick the random color (i.e. each integer corresponds to a color). This works fine, definitely no problems here. The problem is with the delays. I tried to do a bunch of things, but I can't wrap my head around the logic of it.
I apologize for not posting my code, but my code is very complicated right now and would take pages of context to understand (probably part of the problem). I am looking for a simple solution to this.