Intro to Processing Flashcards
What is the command to draw a rectangle?
rect(x of top left, y of top left, width, height);
What is the command to draw a line?
line(x of start, y of start, x of stop, y of stop);
What is the command to draw an ellipse?
ellipse(x of center, y of center, width, height);
In order, what are the primary colours of light?
Red, Green, Blue
What are the 3 different colours you can change in processing?
Background, Stroke, Fill
In greyscale, what value represents black? White?
0, 255
What is the fourth parameter of a colour command?
Transparency
What value would you use to make something transparent? Opaque?
0, 255
What is the command to change the thickness of a line?
strokeWeight(width in pixels);
What are parameters?
The information needed for a function to do its job. (inside the method call)
What is a compile time error?
A syntax error: the program won’t run until you fix it
What is an execution time error?
The program will compile, but will stop running when it comes across the error
What is a logic error?
The program will run, but not as you expect/want it to
What happens in a static program?
Begins with the first line in the file, and runs each line at a time
What happens in an active program?
The program starts, and keeps running. Global constants and variables are declared once at the top, the setup() function runs once, and the draw() function runs over and over until you stop it