Need help: Animating grid with gradient rectangles

similar Need clarification on how this piece of found code is working (recursion) - #4 by Chrisir