Zombie Eyes
Goal:
You are going to make a face with animated eyes. You could use your own face (if you have a photo) or a zombie, a cat, or whatever you like. Whatever you choose, the eyes should be prominent (large).
Steps:
- Find the Zombie Eyes recipe program ( zombie_eyes.pde ) and open it using Processing.
- Drop the image of a face onto your sketch. Load it like this in the setup method:
PImage face = loadImage("face.jpeg");
- Adjust the size of your sketch if necessary.
size(width, height);
- Adjust the size of your image so that the size matches the sketch and draw it using the image command.
face.resize(width, height); image(face, 0, 0);
- Place 2 ellipses over the irises of the eyes in the draw method.
ellipse(x, y, width, height);
- Give the irises a color with the fill command (use numbers in place of red, green, blue).
fill(red, green, blue);
- Use mouseX and mouseY to change the color of the irises when the mouse moves.
- Draw black pupils on top of the irises.
- Make sure you SAVE YOUR CODE when you are done.