What the code does
Animates a square moving sinusoidally across the screen, with its colour being dynamically contingent on its screen position.
Animates a square moving sinusoidally across the screen, with its colour being dynamically contingent on its screen position.