Project #2 Form Generator

Description

This prorject is using mouse position X Y to modify the sanity of the face drawn in P5js

Design Process

I thought randomness can be great to creating something insane and face is excellent medium for insanity. I drew two faces one normal one insane (maxing out insanity meter). Checkout below:

Then I decided since the face is round, bezel curves makes the most sense for its automatic calculated curve. All I need to do is to shake around the points on the curve. After picking out and give the face its original position. Each x and y points are then adjusted according to the insanity meter. The meter is a range for generating a random number that is added to the points. The saturation of the color of the eyes responds to the level of insanity with more color for more insanity.

See my code here

Reflection

The coding process is fairly simple but there are enormous amount of repetition in code. Maybe there are ways to simplify the code. Using only mouse and keyboard as controls seemed a bit lame. If its controlled more reality parameters (webcams, temperature, etc.) that could be fun.