Categories
3. Generative Thing

Face Generator – Nan Lin

Face Generator

Result:

Sketch:

Reflection:

I choose to generate some random faces for this project. I sketched out some of my thoughts. I want face shape, eyes, nose, and mouth to change each time I run the program. I also want to change the background color for each generation. The most difficult part of the code is Bezier vertex, I had to watch several tutorials about it, to understand what it does, but I really like the outcome of it, and I want to use it more often for later projects. For unpredictability, I have a variable storing a random integer, and the random integer will cause different combination of eyes, nose, and mouth. I give basically every shape the same y position, so it won’t be out of place, and I also have a very small range of random face size, so that the four ellipses, which build up the face, won’t be too far away and don’t look like a face. When I do the practice for the face generator, I did an ellipse generator, where it will be given different size, shape, transparency and color, the outcome of it is interesting, but if I have more time, I want to see if I can make all the ellipse not overlap with each other, so it can be more interesting than a bunch of color stack together.

Random Practice:

Citation:

xinxin. “Face Generator V.2.” P5.Js Web Editor, https://editor.p5js.org/xinxin/sketches/TLlFLVdD1.