Drawing Shapes
Drawing Shapes - Part 1: Introduction, Documentation, Creating a Processing File
Drawing Shapes - Part 2: Creating the Canvas, Making a Triangle
Drawing Shapes - Part 3: Changing the Color, Instructions
Use the Processing Documentation (if needed) to create one 5-line program that does each of the following. Note that Processing orients its axes differently than those typically associated with Cartesian coordinates. See the figure below for reference.
Draw a Figure
Draw a Figure - Part 1: Introduction, Creating the file, Part of the Figure
Draw a Figure - Part 2: Finishing the Figure, Instructions for Activity
Using vector shape-drawing commands in Processing, code a sketchbook that draws a figure. For this assignment, we will focus solely on the appearance of your original figure. However, keep in mind that this figure you create in this assignment will be used for the next several assignments. You should be focused on making a figure that will eventually interact with both mouse and keyboard events as well as move about the screen. Examples of good figures might include a robot, person, cat, kangaroo, automobile, etc.
Tips:
ellipse()
, line()
, point()
, rect()
, and triangle()
functions to create a figure.
point(width/2, height/2)
.println()
function can be a lifesaver when troubleshooting your code. Use it to output diagnostic messages as needed. Reference the Debugging with println() Guide.