Use graph paper to draw
and notebook paper to write the code.
On graph paper, design/draw a creature/character of your own using the shapes you have learned so far. Color your character including the outline (stroke) colors and inside (fill) colors. The outline stroke should bea different color than your inside fill. Name your character.
Your character minimally must use (but you can draw more if you want to) the following shapes:
- one rectangle
- one ellipse
- one triangle
- two lines
Please keep this simple. If you want to, you may draw other characters too but focus on the first one for this assignment and do it well.
Once you have drawn a creature on your graph paper and colored it using a variety of both stroke and fill colors, take out a piece of lined paper (please do NOT write your code on the graph paper) and begin writing the code for your creature.
- background() comes first and is declared only ONCE at the top of your code.
- stroke(), fill(), etc. comes above the object (shape) you want to affect.
- Drawing Functions: point(), line(), rect(), ellipse(), triangle()
- Color Functions: stroke(), fill(), background(), noStroke(), noFill()
- strokeWeight(4): makes the line/point/stroke thicker.
When using RGB in your stroke, fill, and background, be purposeful and know what color you are trying to make and describe it in your comment. Remember you may google search for any color you want to find the RGB values.
Look back to the Graphing Shapes if you need a reminder about how to use rect, line, ellipse, etc.
Use COMMENTS for EVERY part of your drawing so you know what your code is doing and remember to include what color you intend.
Remember that to comment out a line you do this:
stroke(100, 0, 0);//red
fill(0, 0, 240);//blue
rect(50, 50, 25, 25); // the rest of this line is a comment and should state what the rect
// represents such as body or left leg or...
Go back to: OpenProcessing Sketches