The blue square below should change position at regular intervals, covering the other squares as follows: neither, gray, black, black, gray, neither.

Testing...