For the variable face project, I took my portrait of a dog and simplified it in code (it used to have a body). When the mouse is pressed, the dog’s ears “move” and the dog itself is colored by the shades of a randomly selected color. The dog is also going to have a random mouth from 3 options: a closed mouth, an open mouth, or have it’s tongue sticking out. The sizes of its nose, mouth, and tongue is also random with each click. The placement of the dog’s eyes and nose will be random somewhere on the top part of the dog’s face. While working on the project, I had difficulty with showing off the different mouths the dog could have. When the mouse was clicked, the dog would show a mouth, but only for a fraction of a second before “erasing” it. This issue was solved when I moved the if statements relating to the mouths into draw() instead of mousePressed().
Link to project: https://www.openprocessing.org/sketch/590649
You must be logged in to post a comment.