https://editor.p5js.org/jz5821/sketches/K2ck1JqyG

This week, I wanted to create lines that follow the keypoints of the face like its trail with facemesh. I used array and for loops to create the visual effects of the trail lines, collected them in one class, and called the functions back.

I was going to make colorful lines with gradients, so I explored with the “lerpColor” function in jsp5. The face starts with one color; while the length is over half of the max length, it reaches the second color. After trying different colors, I ended up liking the combination of black and white. I also removed “clear()” so that the line trails can be stored on canvas giving a sense of scratch art.

Screen Recording 2023-10-10 at 4.57.48 PM.mov

Screen Recording 2023-10-10 at 4.54.39 PM.mov

Screenshot 2023-10-10 at 5.01.19 PM.png

Screenshot 2023-10-10 at 5.01.41 PM.png