| Term | Definition |
| rect(200,200,40,80); | Paint a rect with a corner at (200, 200) and width 40, height 80 |
| ellipse(300,200,40,80); | Paint an oval with a corner at (300,200) and width 40, height 80. |
| line(20,30,50,60); | Paint a line from (20,30) to (50,60) |
| ellipse(300,200,100,100); | Paint a circle with a corner at (300,200) and radius 50 |
| point(30,20); | Paint a point at (30,20) |
| strokeWeight(4); | Make the penwidth 4 pixels wide |
| stroke(255,0,0); | Make the stroke red |
| stroke(0,255,0); | Make the stroke green |
| fill(0,0,255); | Make the fill color blue |
| void setup(){} | Declare a block of code to be ran at the beginning of a looping sketch |
| void draw(){} | Declare a block of code to be ran continuously during the sketch |
| key | What variable contains the last key that was pressed on the keyboard? |
| keyPressed | What boolean variable tells you if any key is pressed? |
| mousePressed | What boolean variable tells you if the mouse button is down? |
| mouseX | What integer variable tells you what the x-coordinate of the mouse is? |
| mouseY | What integer variable tells you what the y-coordinate of the mouse is? |
| mouseButton | What integer variable tells you what the last mouse button depressed was? |
| frameCount | What integer variable tells you how many times draw() has been called? |
| millis() | What integer variable tells you how many 1000ths of a second have elapsed since starting the sketch? |
| height | What integer variable tells you what the height of the current window is in pixels? |
| width | What integer variable tells you the width of the window? |
| myVar = constrain( myVar, -3, 200 ); | int myVar; make myVar no less than -3 and no more than 200 |
| background( 255, 0, 0 ); | Set the background red, covering everything up. |
| background( 255, 0, 0, 127 ); | Set the background halfway transparent red, so you can kind of see through. |
| degrees(2.4); | Convert 2.4 radians to degrees. |
| radians(45) | Convert 45 degrees to radians. |
| x, y, width, height, startAngle, stopAngle | What parameters? arc() |
| paints part of ellipse | What does arc() do? |
| returns a bounds-checked variable | What does constrain() do? |
| straight right | Where is zero degrees? |
| clockwise | Do degrees go clockwise or counterclockwise in processing? |
| translate( width/2, height/2 ); | Make (0,0) be at the center of the screen. |