Code an Eye in Processing
- Practicing using Processing
- Practice using the ”ellipse” command in Processing
- Understand draw order and command ordering
- Understand the Processing 2D coordinate systems
- Make a picture of a Eyeball!
You must create an image using Processing of an Eyeball.
Your ‘sketch’ of the eyeball must:
• be created using at least 5 ellipses • be of size 400 by 400 pixels • be in color
For example:
Some of this information will help you on your lab.
Use only the following commands - where you need to figure out what numbers to plug in to get the desired behaviour:
- ellipse(?, ?, ? , ?) ( x, y coordinates, width, height )
- size(?, ?)
Note that when drawing a shape you can control some of its properties.
Commands that are useful are:
• stroke(r, g, b); ( 0-255, 0-255, 0-255 ) • fill(r, g, b); • noStroke();
Code a set of Crossed-Eye eyeballs, experiment with color and size.
“YOURFIRSTNAME(allcaps).Eyeball.Drawing” “ . “ periods in between words
Cut and Paste this function into the LAST line of your code to save an image ( .png file format ) to your sketch folder.
//save function save(“YOURFIRSTNAME(allcaps).Eyeball.Drawing.png");
TURN IN in Classroom