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