Creative Coding

CMU SAMS 2018

Gradient Search

Camila

I find gradients beautiful, but I wanted some sort of interactive element that could be calming or at least occupy the player’s mind for a little. I decided to make a pseudo-game, where the goal would be to position the mouse closer and closer to a randomly selected point so that the gradient lightens into pure white. While I was playing with the idea of having the actual colors of the gradient change based on the mouse position, I ended up deciding to only change the opacity of the gradient, since this gave hints as to whether the mouse was getting closer or farther away from the point.

Source code