Hero image

Moving Colour Change Sqaure

What the code does

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

Visualisation

The code

Instagram image Instagram image Instagram image Instagram image Instagram image Instagram image