Set: Processing Functions 1

Familiarize

Learn

Test

Play Scatter

Play Space Race

Combine with other sets Login to add to Favorites
Print: Term List | Flashcards Editing not allowed
Export Deleting not allowed

Share these flash cards

With group: lps mentor students
HTML link to set: Tiny link:
Share on Facebook Share on MySpace

All 32 terms

TermDefinition
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
keyWhat variable contains the last key that was pressed on the keyboard?
keyPressedWhat boolean variable tells you if any key is pressed?
mousePressedWhat boolean variable tells you if the mouse button is down?
mouseXWhat integer variable tells you what the x-coordinate of the mouse is?
mouseYWhat integer variable tells you what the y-coordinate of the mouse is?
mouseButtonWhat integer variable tells you what the last mouse button depressed was?
frameCountWhat 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?
heightWhat integer variable tells you what the height of the current window is in pixels?
widthWhat 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, stopAngleWhat parameters? arc()
paints part of ellipseWhat does arc() do?
returns a bounds-checked variableWhat does constrain() do?
straight rightWhere is zero degrees?
clockwiseDo degrees go clockwise or counterclockwise in processing?
translate( width/2, height/2 );Make (0,0) be at the center of the screen.

Set Information

Terms 32
Creator myerteaching
Created March 5, 2009
Group lps mentor students
Subjects programming, math
Access Anyone
Edit Via password or Group: lps mentor students
Get rid of ads on Quizlet

Description

From http://processing.org/reference - remember those method names!!!

Pop out

Discuss

No Messages
Last Message: never

You must be logged in to discuss this set.

Top Users

  1. myrstu9 - 65 scores

Most Missed Words

  1. myVar = constrain( myVar, -3, 200 ); int myVar; make myVar no less than -3 and no more than 200 - 3 misses
  2. key What variable contains the last key that was pressed on the keyboard? - 2 misses
  3. height What integer variable tells you what the height of the current window is in pixels? - 2 misses
  4. millis() What integer variable tells you how many 1000ths of a second have elapsed since starting the sketch? - 2 misses
  5. straight right Where is zero degrees? - 2 misses
  6. mousePressed What boolean variable tells you if the mouse button is down? - 2 misses
  7. x, y, width, height, startAngle, stopAngle What parameters? arc() - 2 misses